Stacked area chart
Prints two or more non-negative numeric series stacked over a shared x-axis.
Series labels must be unique and every series must contain the same number of values. If yMax is provided, it must be at least as large as every stacked total.
Example
{
"type": "stackedAreaChart",
"series": [
{
"label": "Solar",
"values": [
5,
8,
7
]
},
{
"label": "Grid",
"values": [
4,
3,
6
]
}
],
"xLabels": [
"Mon",
"Tue",
"Wed"
]
}Fields
| Field | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
typerequired | "stackedAreaChart" | Discriminator for stacked-area-chart blocks. | |||||||||
seriesrequired | array<object> | Two to four non-negative series stacked by x value.
Nested fields
| |||||||||
xLabelsoptional | array<string> | Optional x-axis labels for each data point. Keep labels as short as possible.
| |||||||||
yMaxoptional | number | Optional upper bound for stacked totals.
|