cspence001
Posts: 6
Joined: Mon May 03, 2021 11:20 pm

Creating Scatter Plot with Time Series json render

Hi I'm trying to create a chart similiar to this one
https://www.highcharts.com/demo/scatter
with the date as the x-axis reading from json array, positions 1 [date], and 2 [score]

The chart currently renders like this -
https://ibb.co/DRpjbTg
displaying the correct plot points but without correct date conversion on the x-axis using this code -
https://jsfiddle.net/cspence001/q78m9zkh/1/

My json file is of this structure
[[521245,1618383518.0,-0.4215,"Negative"],[521246,1618383778.0,0.0,"Neutral"],[521247,1618383885.0,0.8703,"Positive"]]
https://www.dropbox.com/s/254lurb642o7w ... .json?dl=0

Any assistance would be greatly appreciated.
cspence001
Posts: 6
Joined: Mon May 03, 2021 11:20 pm

Re: Creating Scatter Plot with Time Series json render

updated code - https://jsfiddle.net/cspence001/q78m9zkh/1/
updated rendered img - https://ibb.co/259QVCw

The issue is solely with the date render.
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Creating Scatter Plot with Time Series json render

Hello cspence001,

Thanks for contacting us with your question.

Unfortunately the demo that you shared doesn't work for me. I keep getting 404 status response. Could you please make sure that the demo is working? Thanks in advance.

Best regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”