Chart Band
One range of a chart's value axis, shaded behind the data (see Chart.bands).
Metadata
Field index
| Field | Type | Req. | Description |
|---|---|---|---|
| to | ref:FiniteNumber | yes | The band's upper end, in the value axis's units (with format 0%, 0.8 is 80%). Bands expand automatic axis bounds to the last 'to', as reference lines do. |
| label | string | — | The band's name, such as 'Poor' or 'On target': its legend entry and its text alternative. Absent: the band has no legend entry. |
| color | ref:SchemeColorName | — | A scheme color instead of the neutral, for ranges that mean good or bad. Drawn as a light tint of that color (25% of it over the chart's surface). Absent: the next neutral.
|
to
typeref:FiniteNumberrequiredyesdefault—
The band's upper end, in the value axis's units (with format 0%, 0.8 is 80%). Bands expand automatic axis bounds to the last 'to', as reference lines do.
label
typestringrequirednodefault—pattern\S
The band's name, such as 'Poor' or 'On target': its legend entry and its text alternative. Absent: the band has no legend entry.
color
typeref:SchemeColorNamerequirednodefault—
A scheme color instead of the neutral, for ranges that mean good or bad. Drawn as a light tint of that color (25% of it over the chart's surface). Absent: the next neutral.
color· Allowed values"accent1""accent2""accent3""accent4""accent5""accent6""dark1""dark2""light1""light2""primary""secondary""accent""background""surface""surfaceAlt""text""textSecondary"
{
"color": "accent1"
}Complete definition constraints
{
"type": "object",
"additionalProperties": false,
"required": [
"to"
],
"description": "One range of a chart's value axis, shaded behind the data (see Chart.bands).",
"properties": {
"to": {
"$ref": "#/$defs/FiniteNumber",
"description": "The band's upper end, in the value axis's units (with format 0%, 0.8 is 80%). Bands expand automatic axis bounds to the last 'to', as reference lines do."
},
"label": {
"type": "string",
"minLength": 1,
"pattern": "\\S",
"description": "The band's name, such as 'Poor' or 'On target': its legend entry and its text alternative. Absent: the band has no legend entry."
},
"color": {
"$ref": "#/$defs/SchemeColorName",
"description": "A scheme color instead of the neutral, for ranges that mean good or bad. Drawn as a light tint of that color (25% of it over the chart's surface). Absent: the next neutral."
}
},
"examples": [
{
"to": 0.6,
"label": "Poor"
},
{
"to": 10,
"label": "Within target",
"color": "accent3"
}
]
}