Home Forums Feature Requests & Feedback Creating Multi Series Chart in AJAX with JSON Reply To: Creating Multi Series Chart in AJAX with JSON

#20573

@yansonalvin97,

You can update the chart data by changing options and calling chart.render();. Please refer to this documentation page for step-to-step tutorial on the same.
Adding / Updating Chart Datapoint Dynamically from a Button
in your case, you need to group the datapoints from JSON based on year. Please take a look at this updated JSFiddle.

Also, we suggest you to initialize chart once before AJAX rather than initializing it on every AJAX calls.


Vishwas R
Team CanvasJS