remember Cartesian Chart
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.
start Axis
the start Axis.
top Axis
the top Axis.
end Axis
the end Axis.
bottom Axis
the bottom Axis.
marker
appears when the CartesianChart is tapped.
marker Visibility Listener
allows for listening to marker visibility changes.
layer Padding
returns the CartesianLayerPadding.
legend
the legend.
fading Edges
applies a horizontal fade to the edges of the CartesianChart, provided that it’s scrollable.
decorations
the Decorations.
persistent Markers
adds persistent CartesianMarkers.
get XStep
defines the x step (the difference between neighboring major x values).