Skip to content

RoundedBarOpts

Defined in: core/draw.ts:133

Options for roundedBar — corner radii, optional hover glow, and glow colour. Charts (Bar, HBar, ComboChart, StackedBar, Bullet, etc.) forward their hover state and theme into this for a consistent rounded- rectangle visual language.

optional glowColor?: string

Defined in: core/draw.ts:143

Glow / shadow colour. Defaults to the bar’s fill colour.


optional hover?: boolean

Defined in: core/draw.ts:141

Apply the canvas drop-shadow used as a hover halo on this bar.


optional radii?: number | [number, number, number, number]

Defined in: core/draw.ts:139

Corner radii in pixels. Pass a single number for uniform corners or a tuple [topLeft, topRight, bottomRight, bottomLeft] for asymmetric shapes (e.g. only round the top of a stacked bar).