BarStyle

data class BarStyle(val barWidth: Dp = 30.dp, val cornerRadius: Dp = 4.dp, val paddingBetweenBars: Dp = 15.dp, val isGradientEnabled: Boolean = false, val barBlendMode: BlendMode = DrawScope.DefaultBlendMode, val barDrawStyle: DrawStyle = Fill, val selectionHighlightData: SelectionHighlightData? = SelectionHighlightData())

BarStyle data class adds styling related to each bar in the bar graph

Parameters

barWidth

: Width of a bar

cornerRadius

: Corner radius for the bars

paddingBetweenBars

: Space between adjacent bars

isGradientEnabled

: Boolean Flag to enable/disable gradient bars

barBlendMode

: Blend mode for the bars

barDrawStyle

: Draw style for the bars

drawBar

: Draw an individual bar

Constructors

Link copied to clipboard
constructor(barWidth: Dp = 30.dp, cornerRadius: Dp = 4.dp, paddingBetweenBars: Dp = 15.dp, isGradientEnabled: Boolean = false, barBlendMode: BlendMode = DrawScope.DefaultBlendMode, barDrawStyle: DrawStyle = Fill, selectionHighlightData: SelectionHighlightData? = SelectionHighlightData())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard