@gaurav-sharma6,
This behavior is by design. By default, dynamicUpdate property is set to true because of which the StockChart is updated dynamically while updating range using Slider. You can override this behavior by setting the dynamicUpdate property to false.
—
Shashi Ranjan
Team CanvasJS