width: Number

Sets the width of StockChart in pixels.

Default: Inherits the container’s width by default.
Examples: 500, 680, 720, …
var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 width: 680,
 .
 . 
});
stockChart.render();

Try Editing The Code

  Also See:    


If you have any questions, please feel free to ask in our forums.Ask Question