Home Forums Chart Support Shift live graph Reply To: Shift live graph

#40007

@rafdu01,

Since you are using chart options to access the datapoints, the code must be re-written to fit your scenario as shown in the code snippet below,

if (chart.options.data[0].dataPoints.length > 10 ) {
   chart.options.data[0].dataPoints.shift();
 }

If this doesn’t solve your requirement, kindly share a sample project over Google Drive or Onedrive reproducing the issue you are facing, so that we can look into the code, run it locally to understand the scenario better, and help you out.


Adithya Menon
Team CanvasJS