StackedBarSelectionStyle

data class StackedBarSelectionStyle(val visible: Boolean, val color: Color, val width: Dp, val unselectedAlpha: Float)(source)

Selection indicator configuration for stacked bar charts.

While a bar is selected, the other bars are drawn at unselectedAlpha so the selected bar stands out. The selection line is drawn only above the selected bar.

Constructors

Link copied to clipboard
constructor(visible: Boolean, color: Color, width: Dp, unselectedAlpha: Float)

Properties

Link copied to clipboard

The selection line color.

Link copied to clipboard

The alpha multiplier for the other bars while a bar is selected, in 0..1. 1f keeps every bar solid.

Link copied to clipboard

Whether the selection indicator is visible. false also keeps every bar solid.

Link copied to clipboard
val width: Dp

The selection line stroke width in density-independent pixels.