Home forums Using CanvasJS Multiple Datapoints Shifting Reply To: Multiple Datapoints Shifting

#22143

Vishwas R
Keymaster

@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