The guide is being migrated; some links to the API reference may be missing. Use the search bar in the API reference.

Decoration

A Decoration adds an additional layer of data to a CartesianChart. There are two built-in implementations—HorizontalLine and HorizontalBox—and you can add your own.

For an example, see the “AI test scores” (Compose, views) sample chart.