Axis
Use the VerticalAxis.rememberStart
, HorizontalAxis.rememberTop
, VerticalAxis.rememberEnd
, and HorizontalAxis.rememberBottom
functions to create axes:
rememberCartesianChart(
startAxis = VerticalAxis.rememberStart(/* ... */),
topAxis = HorizontalAxis.rememberTop(/* ... */),
endAxis = VerticalAxis.rememberEnd(/* ... */),
bottomAxis = HorizontalAxis.rememberBottom(/* ... */),
// ...
)
Component
factory functionsFor the label
, axis
, tick
, and guideline
parameters of the functions from the previous subsection, you can use rememberAxisLabelComponent
, rememberAxisLineComponent
, rememberAxisTickComponent
, and rememberAxisGuidelineComponent
, which have more suitable defaults than rememberTextComponent
and rememberLineComponent
.