OptionalcolorCSS color for the line/area (wick/outline for candle). Optional — falls back to the
contrast-checked DEFAULT_PALETTE by series index.
OptionaldashDash pattern for the stroke (canvas setLineDash). Omit to auto-assign a distinct pattern
per series so colour is not the only differentiator (WCAG 1.4.1). [] forces solid.
OptionaldownCandle body color when close < open. Default red from the contrast-checked palette. Down candles are drawn filled.
OptionalfillFill opacity for area series, 0..1. Default 0.15.
Human-readable name (announced to screen readers, shown in legend/tooltip).
Optionaltypeline (stroked envelope), area (filled to baseline), or candle (OHLC candlesticks —
consumes four y arrays: open, high, low, close). Default line.
OptionalupCandle body color when close >= open. Default green from the contrast-checked palette. Up candles are drawn hollow (outline only) so direction never relies on colour alone.
OptionalvisibleWhether the series starts visible. Default true.
OptionalwidthStroke width in CSS px. Default 1.25.
Declarative description of one plotted series.