HistogramChart

fun HistogramChart(data: ChartData, modifier: Modifier = Modifier, style: HistogramChartStyle = HistogramChartDefaults.style(), title: String? = null, selection: ChartSelection = rememberChartSelection(), interactionEnabled: Boolean = true, animateOnStart: Boolean = true, valueFormatter: ChartValueFormatter = BarChartDefaults.valueFormatter, axisValueFormatter: ChartValueFormatter = BarChartDefaults.axisValueFormatter)(source)

Displays one series of precomputed, finite, nonnegative bin heights at equal visual widths. Fractional heights and arbitrary category labels (including open-ended intervals) are supported. Fit mode preserves every bin, even at subpixel widths; it never averages or merges bins. Expanded mode provides minimum-width scrolling. Defaults use adjacent bins and a zero baseline.

selection identifies a source bin. Replacing data clears selection; resizing and density changes preserve it. interactionEnabled gates all user controls, not programmatic selection. modifier applies to valid and error states. title does not generate category labels. animateOnStart controls initial reveal only. valueFormatter formats selected raw heights, independently of axisValueFormatter for Y ticks.