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

By default the height of the chart is 400 in react

Viewing 2 posts - 1 through 2 (of 2 total)
  • #59936

    By default the height of the chart is 400 in react instead of taking the height of the container.

    #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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.