AbstractAbstract ReadonlynameHuman-readable name shown in legends / tooltips when identifying the active strategy.
AbstractrenderRender one or more data series into a chart.
Array of named, colour-assigned data series.
Target dimensions in CSS pixels.
An SVG element or raw ImageData.
Abstract base for chart presentation strategies.
A strategy receives an array of ChartSeriesData (one or more named data series) and a target size, and must return a ChartRenderOutput — either an
SVGSVGElement(kind: 'svg') or anImageData(kind: 'imagedata').When the array contains a single series the chart looks identical to a classic single-dataset chart. Multiple series are overlaid on the same axes (e.g. grouped bars, multiple lines, different-coloured scatter groups).
Built-in implementations:
Example