You must be logged in to post your query.
Home › Forums › Chart Support › Multiple Datapoints Shifting
The default behavior of shift(), it seems it is only possible to shift one dataPoint at a time from the array. But I want to shift the multiple number of data points at a time, probably by passing a dynamic number and want to shift that number of points from datapoints array.
Is it possible? Can any one help me?
Thanks in advance.
@chandrakala-i,
Shift is a JavaScript array method that removes the first element from an array whereas slice is an array method that returns a shallow copy of a portion of an array. You can use slice method to remove specific number of elements from dataPoints array.
— Vishwas R Team CanvasJS
Thank you :)
You must be logged in to reply to this topic. Login/Register