-
public final class CartesianChartHostKt
-
-
Method Summary
Modifier and Type Method Description final static UnitCartesianChartHost(CartesianChart chart, CartesianChartModelProducer modelProducer, Modifier modifier, VicoScrollState scrollState, VicoZoomState zoomState, AnimationSpec<Float> animationSpec, Boolean animateIn, Boolean consumeMoveEvents, Function1<BoxScope, Unit> placeholder)Displays a CartesianChart. final static UnitCartesianChartHost(CartesianChart chart, CartesianChartModel model, Modifier modifier, VicoScrollState scrollState, VicoZoomState zoomState, Boolean consumeMoveEvents)Displays a CartesianChart. -
-
Method Detail
-
CartesianChartHost
@Composable() final static Unit CartesianChartHost(CartesianChart chart, CartesianChartModelProducer modelProducer, Modifier modifier, VicoScrollState scrollState, VicoZoomState zoomState, AnimationSpec<Float> animationSpec, Boolean animateIn, Boolean consumeMoveEvents, Function1<BoxScope, Unit> placeholder)
Displays a CartesianChart.
- Parameters:
chart- the CartesianChart.modelProducer- creates and updates the CartesianChartModel.modifier- the modifier to be applied to the chart.scrollState- houses information on the CartesianChart’s scroll value.zoomState- houses information on the CartesianChart’s zoom factor.animationSpec- the AnimationSpec for difference animations.animateIn- whether to run an initial animation when the CartesianChartHost enters composition.consumeMoveEvents- whether to consume move touch events when scroll is disabled and CartesianChart.marker is not null.placeholder- shown when no CartesianChartModel is available.
-
CartesianChartHost
@Composable() final static Unit CartesianChartHost(CartesianChart chart, CartesianChartModel model, Modifier modifier, VicoScrollState scrollState, VicoZoomState zoomState, Boolean consumeMoveEvents)
Displays a CartesianChart. This function accepts a CartesianChartModel. For dynamic data, use the function overload that accepts a CartesianChartModelProducer instance.
- Parameters:
chart- the CartesianChart.model- the CartesianChartModel.modifier- the modifier to be applied to the chart.scrollState- houses information on the CartesianChart’s scroll value.zoomState- houses information on the CartesianChart’s zoom factor.consumeMoveEvents- whether to consume move touch events when scroll is disabled and CartesianChart.marker is not null.
-
-
-
-