Stacked Bar Chart Defaults
Theme-aware style factories and default value formatters for StackedBarChartStyle.
Properties
Functions
Link copied to clipboard
fun layout(space: Dp = StyleDefaults.barSpacing, minBarWidth: Dp = StyleDefaults.minBarWidth): StackedBarLayoutStyle
Returns a StackedBarLayoutStyle for bar spacing and width.
Link copied to clipboard
Returns a LegendStyle with the provided visibility.
Link copied to clipboard
fun segments(color: Color = StyleDefaults.seriesColor, colors: List<Color> = emptyList(), alpha: Float = StyleDefaults.seriesAlpha, gradient: ChartGradient? = null): StackedBarSegmentStyle
Returns a StackedBarSegmentStyle for the stacked segments.
Link copied to clipboard
fun selection(visible: Boolean = true, color: Color = StyleDefaults.selectionColor, width: Dp = StyleDefaults.lineWidth, unselectedAlpha: Float = StyleDefaults.unselectedAlpha): StackedBarSelectionStyle
Returns a StackedBarSelectionStyle for the selection indicator.
Link copied to clipboard
fun style(chartContainerStyle: ChartContainerStyle = ChartContainerDefaults.style(), segments: StackedBarSegmentStyle = segments(), layout: StackedBarLayoutStyle = layout(), axes: AxesStyle = AxesDefaults.style(), selection: StackedBarSelectionStyle = selection(), legend: LegendStyle = legend(), zoomControlsVisible: Boolean = true): StackedBarChartStyle
Returns a StackedBarChartStyle 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.