Represents a single dataset for a cartesian chart (like bar or line).
label
data
color
Optional
Left unset, a colour is chosen from the built-in sequence by position.
One value per label on the category axis; a shorter array leaves the remaining slots empty.
Names the series in the legend.
Represents a single dataset for a cartesian chart (like bar or line).
label: The name of the dataset (e.g., "Sales 2023").data: An array of numeric values for this dataset.color: Optional CSS color string for the entire dataset.