core
CartesianChart
CartesianChartModelProducer
CartesianLayer
CandlestickCartesianLayer
ColumnCartesianLayer
LineCartesianLayer
Axis
CartesianValueFormatter
CartesianMarker
Decoration
Component
Fill
Shape
Legend
compose
VicoTheme
views
val modelProducer = remember { CartesianChartModelProducer() } LaunchedEffect(Unit) { modelProducer.runTransaction { columnSeries { series(4, 12, 8, 16) } } } CartesianChartHost( rememberCartesianChart( rememberColumnCartesianLayer(), startAxis = rememberStartAxis(), bottomAxis = rememberBottomAxis(), ), modelProducer, )
val modelProducer = remember { CartesianChartModelProducer() } LaunchedEffect(Unit) { modelProducer.runTransaction { lineSeries { series(4, 12, 8, 16) } } } CartesianChartHost( rememberCartesianChart( rememberLineCartesianLayer(), startAxis = rememberStartAxis(), bottomAxis = rememberBottomAxis(), ), modelProducer, )
Refer to the sample app—see “Sample app” under “Learning resources” in the preface.