@whykiki,
shift() removes the elements from the beginning of the array. i.e. As you are shifting dataPoints after every 30minutes, it just means you are removing all dataPoints except last 30minutes. Because of this, you will not be able to zoom/pan to the region where there are no dataPoints.
___________
Indranil Deo,
Team CanvasJS