Line chart
Prints one or more numeric series as lines over a shared x-axis.
All series must contain the same number of values. When xLabels is provided, it must contain one label per value.
Example
{
"type": "lineChart",
"series": [
{
"label": "API",
"values": [
120,
140,
110
]
},
{
"label": "DB",
"values": [
80,
90,
95
]
}
],
"xLabels": [
"10:00",
"10:05",
"10:10"
]
}Fields
| Field | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
typerequired | "lineChart" | Discriminator for line-chart blocks. | |||||||||
seriesrequired | array<object> | One to four series plotted as separate lines.
Nested fields
| |||||||||
xLabelsoptional | array<string> | Optional x-axis labels for each data point. Keep labels as short as possible.
| |||||||||
yMinoptional | number | Optional lower bound for the y-axis. | |||||||||
yMaxoptional | number | Optional upper bound for the y-axis. |