Default: Takes chart container’s height by default. If the height is not set for the chart container, defaults to 400.
Example: 260, 300, 400
We suggest not to set width/height property unless it is really required. When you don’t set the width/height, CanvasJS automatically takes the size of its container and hence works well with responsive websites where container’s size might change depending on the device from which it is being used.
var chart = new CanvasJS.Chart("container",