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 it Yourself by Editing the Code below.


  Also See:    



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