Skip to main content

Chart Size

The chart can be sized in a few different ways depending on your layout.

SettingWhat it doesNotes
widthSets a fixed chart width.Use a number or CSS-like string value.
heightSets a fixed chart height.Use a number or CSS-like string value.
autosizeMakes the chart follow its container.Best when the parent element already controls sizing.
Full screenExpands 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 width and height for fixed embeds
  • use autosize for 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.