Vico

8.3. CartesianLayer

8.3.1. CandlestickCartesianLayer

To create a CandlestickCartesianLayer, use the XML attributes:

<com.patrykandpatrick.vico.views.cartesian.CartesianChartView
    android:id="@+id/cartesian_chart_view"
    app:layers="candlestick"
    <!-- ... --> />

Alternatively, use the CandlestickCartesianLayer constructor:

cartesianChartView.chart = CartesianChart(CandlestickCartesianLayer(/* ... */), /* ... */)

8.3.2. ColumnCartesianLayer

To create a ColumnCartesianLayer, use the XML attributes:

<com.patrykandpatrick.vico.views.cartesian.CartesianChartView
    android:id="@+id/cartesian_chart_view"
    app:layers="column"
    <!-- ... --> />

Alternatively, use the ColumnCartesianLayer constructors:

cartesianChartView.chart = CartesianChart(ColumnCartesianLayer(/* ... */), /* ... */)

8.3.3. LineCartesianLayer

To create a LineCartesianLayer, use the XML attributes:

<com.patrykandpatrick.vico.views.cartesian.CartesianChartView
    android:id="@+id/chart_view"
    app:layers="line"
    <!-- ... --> />

Alternatively, use the LineCartesianLayer constructors:

cartesianChartView.chart = CartesianChart(LineCartesianLayer(/* ... */), /* ... */)