OptionalbandOptionalbandBand color (default: theme muted text color at 15% alpha); its alpha is used as is
OptionalcolorSeries / bar / win color (default: first theme palette color)
OptionaldescriptionAccessible name of the canvas; replaces the generated trend summary
OptionalfillArea fill alpha multiplier (default 0.2)
OptionalformatNumber format of the aria-label / tooltip values (default: locale, up to 2 decimals)
OptionalheightOptionallabelName used in the aria-label and tooltip, e.g. 'Revenue'
OptionallastOptionallineStroke width in CSS px (default 1.5)
OptionalmarkerMarker radius in CSS px (default 2.5)
OptionalminMin / max marker color (default: theme secondary text color)
OptionalnegativeLoss bars of 'winloss' (default: second theme palette color)
OptionalpaddingCSS px around the plot (default 2, or marker radius + 1 when markers are shown)
OptionalshowMarker on the last sample, in the series color (default false)
OptionalshowMarkers on the minimum and maximum (default false; ignored by 'winloss')
OptionaltooltipBuilt-in hover tooltip (default false: no tooltip DOM, no pointer listeners)
Optionaltype'line' (default), 'area', 'bar' or 'winloss' (equal up / down bars by sign)
OptionalwidthPlot size in world units; only the aspect matters (the plot fills the canvas). Default: the canvas CSS size minus padding — re-fitted on resize while neither is given.
Reference band
[lo, hi]in data units (e.g. a target range), beneath the series