Plot Bands
The Chart plot bands allow you to highlight a specific range of an axis.
To display plot bands, set the axis plotBands
option to an array of PlotBand
.
The following example demonstrates how to configure the plot bands of an axis.
Labels
Each plot band can be configured to display an optional label.
The following example demonstrates how to display and style plot band labels.
Custom Plot Bands
To visualize the range in a different way or to show additional elements, manually draw the plot bands by using the Drawing API in the onRender
event.
To get the range coordinates:
The following example demonstrates how to draw custom plot bands.