@khurram-khan,
Please make sure that the CDN you are using in your project is that of stockchart (https://cdn.canvasjs.com/canvasjs.stock.min.js). If you are still facing issue after that, kindly check the browser console for any errors and let us know, so that we can understand the scenario better and help you out.
—
Ananya Deka
Team CanvasJS