Each layer represents one data series rendered on the same chart.
Layers share the component-level labelProperty for the X-axis;
each layer can optionally override valueProperty and provide
its own data array (falling back to the component-level data).
Example
// Same data array, different value columns constlayers: ChartLayer<SalesRow>[] = [ { name:'Revenue', valueProperty:'revenue' }, { name:'Cost', valueProperty:'cost' }, ];
// Different data arrays (e.g. year-over-year) constlayers: ChartLayer<SalesRow>[] = [ { name:'2024', data:sales2024 }, { name:'2025', data:sales2025 }, ];
A single data layer for multi-series charts.
Each layer represents one data series rendered on the same chart. Layers share the component-level
labelPropertyfor the X-axis; each layer can optionally overridevaluePropertyand provide its owndataarray (falling back to the component-leveldata).Example