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

Axis

Creation

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 functions

For 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.