CartesianChart
Anatomy
CartesianChart
draws charts based on Cartesian coordinate planes. Any such chart includes one or more CartesianLayer
s. The CartesianLayer
s 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 CartesianLayer
s. The x-range is the narrowest one that includes all CartesianLayer
s’ 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