Bar Chart Section
A page section that pairs a StylishSection heading with a SimpleBarChart.
Use this on dashboard or summary screens to present categorical data (e.g. monthly expenses) with a consistent heading style. Available on all platforms (commonMain).
Parameters
Section heading text rendered by the StylishSection header.
List of BarChartData points to plot. Each entry carries a label, a numeric value, and an optional segments list for stacked bars.
Leading text for the chart's combined accessibility description.
Text displayed when data is empty, informing the user that no data is available.
Modifier applied to the section container.
Fill color for single-color (non-stacked) bars. Defaults to MaterialTheme.colorScheme.primary.
Color of horizontal grid lines. Defaults to MaterialTheme.colorScheme.outlineVariant.
Total height of the chart area. Defaults to DefaultStylishDimensions.barChartHeight.
Corner radius applied to the top of each bar (or the topmost segment in stacked mode). Defaults to 4 dp.
Text size for axis and category labels. Defaults to 10 dp.
Number of horizontal grid lines including the baseline. Defaults to 4.