BarChart

fun BarChart(dataCollection: ChartDataCollection, modifier: Modifier = Modifier, barSpacing: Dp = 8.dp, padding: Dp = 16.dp, barColor: Color = Color.Blue, axisConfig: AxisConfig = ChartDefaults.axisConfigDefaults())

A composable function that displays a bar chart based on the provided data collection.

Parameters

dataCollection

The collection of chart data representing the bars in the chart.

modifier

Modifier for applying styling and positioning to the chart.

barSpacing

The spacing between bars in the chart.

padding

Padding around the chart content to create spacing.

barColor

The color used to fill the bars in the chart.

axisConfig

Configuration for the chart axes, including color and stroke width.


fun BarChart(dataCollection: ChartDataCollection, modifier: Modifier = Modifier, barSpacing: Dp = 8.dp, padding: Dp = 16.dp, axisConfig: AxisConfig = ChartDefaults.axisConfigDefaults())

A composable function that displays a bar chart based on the provided data collection.

Parameters

dataCollection

The collection of chart data representing the bars in the chart.

modifier

Modifier for applying styling and positioning to the chart.

barSpacing

The spacing between bars in the chart.

padding

Padding around the chart content to create spacing.

axisConfig

Configuration for the chart axes, including color and stroke width.