@samarit,
[UPDATE]
We have just released StockChart v1.10.7 with this bug fix. Please refer to the release blog for more information. Do download the latest version from download page & let us know your feedback.
Thanks for reporting the use-case. The issue seems to be happening when navigator is disabled. We will fix this issue in our future versions. However, you can achieve your requirement using Chart instead of StockChart (using canvasjs.stock.min.js, you can create both Chart and StockChart) as shown in this JSFiddle.
—-
Manoj Mohan
Team CanvasJS