API REFERENCE

width

Chart width in pixels. If the container width changes, update width from a ResizeObserver.

Definition

ItemValue
JavaScript propertywidth
HTML attributewidth
Typenumber
Default600

Configuration example

javascript
chart.width = 600;