Home forums Using CanvasJS Data aggregation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29114

    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.

    Thanks
    Saurabh

    #29119

    Saurabh,

    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.


    Vishwas R
    Team CanvaJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.