chart.height & chart.width

Configuration Structure

chart: {
height: string | number,
}

height and width control the size of the chart. Both accept a number (treated as pixels), a pixel string like '400px', or a percentage like '100%'. By default the width fills its container and the height is derived from the golden ratio. They are part of the chart configuration.

height

Default: 'auto'

Height of the chart. The default value 'auto' is calculated based on the golden ratio 1.618 which makes a height roughly 61.8% of its width. Accepts Number (400) or String ('400px' or '100%')

width

Width of the chart. Accepts Number (400) which is treated as pixels or String ('400px' or '100%')