Vico

8.4. Axis

Use the XML attributes to create HorizontalAxis and VerticalAxis instances:

<com.patrykandpatrick.vico.views.cartesian.CartesianChartView
    android:id="@+id/cartesian_chart_view"
    app:showStartAxis="true"
    app:showTopAxis="true"
    app:showEndAxis="true"
    app:showBottomAxis="true"
    ... />

Alternatively, use VerticalAxis.start, HorizontalAxis.top, VerticalAxis.end, and HorizontalAxis.bottom:

cartesianChartView.chart =
    CartesianChart(
        startAxis = VerticalAxis.start(/* ... */),
        topAxis = HorizontalAxis.top(/* ... */),
        endAxis = VerticalAxis.end(/* ... */),
        bottomAxis = HorizontalAxis.bottom(/* ... */),
        // ...
    )