Home Forums Report Bugs By default the height of the chart is 400 in react Reply To: By default the height of the chart is 400 in react

#59941

@scompliance,

In case of React Charts, you can set the height and width of the chart-container by passing it as containerProps as shown in the code-snippet below.
<CanvasJSChart options={options} containerProps={{ width: '100%', height: '300px' }} />

Please refer to React Charts documentation for more information.


Vishwas R
Team CanvasJS