CartesianLayer

CandlestickCartesianLayer

To create a CandlestickCartesianLayerarrow-up-right, use the XML attributes:

<style name="ChartStyle">
    <item name="layers">candlestick</item>
    <!-- ... -->
</style>
<com.patrykandpatrick.vico.views.cartesian.CartesianChartView
    app:chartStyle="@style/ChartStyle"
    <!-- ... --> />

Alternatively, use the CandlestickCartesianLayer constructor:

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

ColumnCartesianLayer

To create a ColumnCartesianLayerarrow-up-right, use the XML attributes:

<style name="ChartStyle">
    <item name="layers">column</item>
    <!-- ... -->
</style>

Alternatively, use the ColumnCartesianLayer constructors:

LineCartesianLayer

To create a LineCartesianLayerarrow-up-right, use the XML attributes:

Alternatively, use the LineCartesianLayer constructors:

Multiple CartesianLayers

You can add multiple CartesianLayers by separating their names with pipes:

Last updated