For the complete documentation index, see llms.txt. This page is also available as Markdown.

Starter examples

Column chart

The following has been adapted from the “Basic column chart” sample chart.

val modelProducer = remember { CartesianChartModelProducer() }
LaunchedEffect(Unit) {
    modelProducer.runTransaction {
        columnModel { series(5, 6, 5, 2, 11, 8, 5, 2, 15, 11, 8, 13, 12, 10, 2, 7) }
    }
}
CartesianChartHost(
    rememberCartesianChart(
        rememberColumnCartesianLayer(),
        startAxis = VerticalAxis.rememberStart(),
        bottomAxis = HorizontalAxis.rememberBottom(),
    ),
    modelProducer,
)

Line chart

The following has been adapted from the “Basic line chart” sample chart.

Combo chart

The following has been adapted from the “Basic combo chart” sample chart.

More

For more examples, refer to the sample app.

Last updated