KBarChart

fun KBarChart(item: ChartRegistryItem, stacked: Boolean = false, showNegative: Boolean = false, cornerRadius: BarCornerRadius = BarCornerRadius.ALL, showGridLines: Boolean = true, activeIndex: Int = -1, modifier: Modifier = Modifier)(source)

A fully-themed vertical bar chart that mirrors the shadcn <BarChart> component.

Parameters

stacked

When true, series are stacked on top of each other.

showNegative

When true, bars below zero are drawn in chart2 color.

cornerRadius

Rounding applied to bar tops.

showGridLines

Horizontal grid lines toggle.

activeIndex

When >= 0, highlights that x-index and mutes all others.