Home forums Using CanvasJS can we get series minimum and maximum value of datapoints Reply To: can we get series minimum and maximum value of datapoints

#23119

jmnn
Member

Hi
Thanks for your help

I send you the code. The last price changes every 5 seconds, but only the price changes, the time is always the same, it does not change. (see crosshair)
The file structure is as follows:
1.- Data Historic Data ( 5 Datapoints)
2.- Actual Data (update1(chart)
3.- Update data (update2(chart)
This is an example.
The problem is in update2(chart). I have used the option (chart.options.data [0] .dataPoints [length-1] .y = price;)
to place the data in the right place but it does not serve to update the value of time and I have not found the solution for it for updating date/time

Code : jsfiddle.net

thanks for your help

  • This reply was modified 1 month ago by  jmnn.