Vico
Vico 2.1.0 (in alpha) adds Compose Multiplatform support.

CartesianChart

Anatomy

CartesianChart draws charts based on Cartesian coordinate planes. Any such chart includes one or more CartesianLayers. The CartesianLayers are stacked, and each one has its own data.

Creation

Instantiate CartesianChart via rememberCartesianChart.

Ranges

A CartesianChart’s x- and y-ranges depend on those reported by its CartesianLayers. The x-range is the narrowest one that includes all CartesianLayers’ x-ranges. By default, there’s an analogously determined shared y-range, but two separate y-ranges can also be introduced.

x- and y-range customization is discussed in a later subsection.

Sample charts