rememberCartesianChart
fun rememberCartesianChart(vararg layers: CartesianLayer<*>, startAxis: Axis<Axis.Position.Vertical.Start>? = null, topAxis: Axis<Axis.Position.Horizontal.Top>? = null, endAxis: Axis<Axis.Position.Vertical.End>? = null, bottomAxis: Axis<Axis.Position.Horizontal.Bottom>? = null, marker: CartesianMarker? = null, markerVisibilityListener: CartesianMarkerVisibilityListener? = null, layerPadding: (ExtraStore) -> CartesianLayerPadding = { CartesianLayerPadding() }, legend: Legend<CartesianMeasuringContext, CartesianDrawingContext>? = null, fadingEdges: FadingEdges? = null, decorations: List<Decoration> = emptyList(), persistentMarkers: CartesianChart.PersistentMarkerScope.(ExtraStore) -> Unit? = null, getXStep: (CartesianChartModel) -> Double = { it.getXDeltaGcd() }): CartesianChart
Creates and remembers a CartesianChart.
Parameters
layers
the CartesianLayers.
startAxis
the start Axis.
topAxis
the top Axis.
endAxis
the end Axis.
bottomAxis
the bottom Axis.
marker
appears when the CartesianChart is tapped.
markerVisibilityListener
allows for listening to marker visibility changes.
layerPadding
returns the CartesianLayerPadding.
legend
the legend.
fadingEdges
applies a horizontal fade to the edges of the CartesianChart, provided that it’s scrollable.
decorations
the Decorations.
persistentMarkers
adds persistent CartesianMarkers.
getXStep
defines the x step (the difference between neighboring major x values).