StackedAreaChartDefaults

Theme-aware style factories and default value formatters for StackedAreaChartStyle.

Properties

Link copied to clipboard

Default axis formatter, omitting only the terminal .0 on whole values.

Link copied to clipboard

Default formatter for selected values in the title and legend.

Functions

Link copied to clipboard
fun fill(color: Color = StyleDefaults.seriesColor, colors: List<Color> = emptyList(), alpha: Float = StyleDefaults.seriesAlpha, bezier: Boolean = false, gradient: ChartGradient? = null): StackedAreaFillStyle

Returns a StackedAreaFillStyle for the stacked layers.

Link copied to clipboard
fun legend(visible: Boolean = StyleDefaults.legendVisible): LegendStyle

Returns a LegendStyle with the provided visibility.

Link copied to clipboard
fun selection(visible: Boolean = true, color: Color = StyleDefaults.selectionColor, width: Dp = StyleDefaults.lineWidth, unselectedAlpha: Float = StyleDefaults.unselectedAlpha): StackedAreaSelectionStyle

Returns a StackedAreaSelectionStyle for the selection indicator.

Link copied to clipboard
fun style(chartContainerStyle: ChartContainerStyle = ChartContainerDefaults.style(), fill: StackedAreaFillStyle = fill(), axes: AxesStyle = AxesDefaults.style(), selection: StackedAreaSelectionStyle = selection(), legend: LegendStyle = legend(), zoomControlsVisible: Boolean = true): StackedAreaChartStyle

Returns a StackedAreaChartStyle with the provided parameters or their default values.

Link copied to clipboard
fun xLabels(visible: Boolean = StyleDefaults.axisLabelsVisible, color: Color = StyleDefaults.axisLabelColor, size: TextUnit = StyleDefaults.axisLabelSize, maxCount: Int? = StyleDefaults.axisLabelMaxCount): AxisLabelStyle

Returns an AxisLabelStyle for X-axis labels.

Link copied to clipboard
fun yLabels(visible: Boolean = StyleDefaults.axisLabelsVisible, color: Color = StyleDefaults.axisLabelColor, size: TextUnit = StyleDefaults.axisLabelSize, maxCount: Int? = StyleDefaults.axisLabelMaxCount): AxisLabelStyle

Returns an AxisLabelStyle for Y-axis labels.