core
CartesianChart
CartesianChartModelProducer
CartesianLayer
CandlestickCartesianLayer
ColumnCartesianLayer
LineCartesianLayer
Axis
CartesianValueFormatter
CartesianMarker
Decoration
Component
Fill
Shape
Legend
compose
VicoTheme
views
Use the XML attributes to create HorizontalAxis and VerticalAxis instances:
HorizontalAxis
VerticalAxis
<style name="ChartStyle"> <item name="showStartAxis">true</item> <item name="showTopAxis">true</item> <item name="showEndAxis">true</item> <item name="showBottomAxis">true</item> </style>
<com.patrykandpatrick.vico.views.cartesian.CartesianChartView app:chartStyle="@style/ChartStyle" <!-- ... --> />
Alternatively, use VerticalAxis.start, HorizontalAxis.top, VerticalAxis.end, and HorizontalAxis.bottom:
VerticalAxis.start
HorizontalAxis.top
VerticalAxis.end
HorizontalAxis.bottom
cartesianChartView.chart = CartesianChart( startAxis = VerticalAxis.start(/* ... */), topAxis = HorizontalAxis.top(/* ... */), endAxis = VerticalAxis.end(/* ... */), bottomAxis = HorizontalAxis.bottom(/* ... */), // ... )