Decorations
A Decoration
adds an additional layer of data to a CartesianChart
. There are two built-in
implementations—HorizontalLine
and HorizontalBox
—described below, and you can add your own. Add a
Decoration
to a CartesianChart
as follows:
- Compose
- Views
CartesianChartHost(chart = rememberCartesianChart(decorations = listOf(...), ...), ...)
cartesianChartView.addDecoration(...)