Bar Chart Data
data class BarChartData(val label: String, val value: Float, val segments: List<BarChartSegment> = emptyList())
Data for a single bar (category) in a SimpleBarChart.
When segments is empty the bar is drawn as a single solid rectangle using the chart-level barColor. When segments are provided, each segment is drawn in its own color; the total visual height equals the sum of segment values. Callers should ensure segments sum to value for consistent scaling with non-stacked bars.
See also
Properties
Link copied to clipboard
Optional stacked sub-divisions. When non-empty, each BarChartSegment is drawn in order from the base upward. Defaults to an empty list (single-color bar).