Home › forums › Using CanvasJS › Data aggregation
Is there a way we can aggregate x-coordinates when displaying a large amount of data in chart.
Eg. X-axis is timeseries and we load 6 months of data so 1 data point represents 10 days whereas if we are loading data for 1 month then 1 data point represents 12 hours or so.
Another good to have thing will be if user zooms in on 6 months of chart then the charts gets re-rendered to represent 1 data points for 1 day or so.
You can update dataPoints based on zoom-level with the help of rangeChanging event to achieve your requirements. Please take a look at this JSFiddle.
You must be logged in to reply to this topic.