Starter examples
Column chart
<style name="ChartStyle">
<item name="layers">column</item>
<item name="showBottomAxis">true</item>
<item name="showStartAxis">true</item>
</style><com.patrykandpatrick.vico.views.cartesian.CartesianChartView
android:id="@+id/chart_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:chartStyle="@style/ChartStyle" />val modelProducer = CartesianChartModelProducer()chartView.modelProducer = modelProducer
lifecycleScope.launch {
modelProducer.runTransaction {
columnSeries { series(5, 6, 5, 2, 11, 8, 5, 2, 15, 11, 8, 13, 12, 10, 2, 7) }
}
}
Line chart

More
Last updated