Home forums Using CanvasJS update chart with new values Reply To: update chart with new values

#20841

Vishwas R
Keymaster

@unixssh,

You can perform data filtering based on zoom-range. Initially you can read all data using AJAX and then pass dataPoints to chart based on zoomed-range whether its 30 minutes or 1 minute. Please take a look at this jsfiddle for an example on data-filtering based on zoomed-range.

moving the code to rangeChanged function it seems the chart is not render properly and i don’t understand why

In the jsfiddle you have shared, you are generating new dataPoints with x-value as date-time which is outside the range you have zoomed. Because of which you may find chart to be blank, without any dataPoints, after zooming to a certain region.


Vishwas R
Team CanvasJS