ReadonlyariaAccessible label for the chart region.
ReadonlyheightHeight of the chart in CSS pixels.
Protected ReadonlyisWhether we are rendering multiple named series.
ReadonlylabelProperty name on T whose value is used as the label string.
Protected ReadonlylegendLegend entries — per-point for single-series, per-series for multi.
ReadonlypaletteCustom colour palette. Falls back to the 12-colour default.
Protected ReadonlyseriesProcessed series data ready for strategy rendering.
ReadonlyshowWhether to show the legend beneath the chart.
Protected ReadonlysizeTarget render size.
ReadonlysourceArray of data objects to chart (single-series convenience).
ReadonlysourcesMultiple data layers for multi-series charts.
When non-empty, each ChartLayer defines a named series.
Layers share labelProperty and fall back to the component-level
source and valueProperty unless overridden per-layer.
ReadonlystrategyPresentation strategy (line, bar, pie, or custom).
ReadonlyvalueProperty name on T whose value is used as the numeric value.
ReadonlywidthWidth of the chart in CSS pixels.
Generic data-chart component that delegates rendering to a GraphPresentationStrategy.
Accepts either a single data array (
source) or multiple layers (sources) and extracts labels / values via thelabelPropertyandvaluePropertyinputs. The chosen strategy renders the chart as either an SVG element or raw ImageData; the component inserts the result into the DOM automatically.A legend is rendered below the chart.
Example: Single-series (backward-compatible)
Example: Multi-series — same data, different value columns
Example: Multi-series — different data arrays