CartesianChart

Anatomy

CartesianChartarrow-up-right draws charts based on Cartesian coordinate planes. Any such chart includes one or more CartesianLayerarrow-up-rights. The CartesianLayers are stacked, and each one has its own data.

Creation

Instantiate CartesianChart via rememberCartesianChartarrow-up-right.

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

Last updated