Chart Size
The chart can be sized in a few different ways depending on your layout.
| Setting | What it does | Notes |
|---|---|---|
width | Sets a fixed chart width. | Use a number or CSS-like string value. |
height | Sets a fixed chart height. | Use a number or CSS-like string value. |
autosize | Makes the chart follow its container. | Best when the parent element already controls sizing. |
| Full screen | Expands the chart to fill the available screen area. | This is a runtime viewing mode, not a chart-init option. |
When To Use Each One
- use
widthandheightfor fixed embeds - use
autosizefor responsive layouts - use full screen when you want the chart to take over the available workspace
Note
The chart still needs a real container element even when autosize is enabled.