Home Forums Chart Support How to manage graph size Reply To: How to manage graph size



By default Chart takes the size of its container (if set). So you can just set the width and height of the container in which you are going to place the chart as shown below:
<div id="chartContainer" style="height: 300px; width: 500px;">

Else you can also set the same using “width” and “height” property in chart options.

var chart = new CanvasJS.Chart(“chartContainer”, {
    width:600,//in pixels
    height:800,//in pixels
    title: {
        text: ” Chart Title “,

If this doesn’t solve your issue, kindly create jsfiddle reproducing the issue you are facing so that we can look into your code and help you better?

Vishwas R
Team CanvasJS