suiss/ui · Chart
Bar Chart Multiple
Two series drawn as grouped bars side by side for each month.
Bar Chart Multiple is an open-source chart from suiss/ui for React, React Native, SwiftUI and Jetpack Compose. The @esuiss/ui CLI copies its source into your project, so you own the code.
Two series drawn as grouped bars side by side for each month. Pick it over the stacked variant when readers need to compare the series directly rather than see their total.
Installation
CLI
Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:
Manual
- Install the dependencies:
-
Copy the source into
components/charts/bar-chart-multiple.tsx:
- Update the import paths to match your project.
Usage
Replace chartData and rename the series keys in the data, the two Bar elements and chartConfig. Add a third Bar for another series. Tune barGap to control the space between bars in a group.
Notes
Grouped bars get thin quickly; beyond three series or a dozen categories, consider stacked bars or a line chart. The arrow keys move the tooltip between months once the chart has focus.

Two Bar series sit next to each other in every month, separated by a small barGap. The tooltip lists both values with a dashed indicator.
Installation
The CLI also adds what it builds on: Card, Chart.
Manual
-
Target iOS 17 or later.
-
Copy the theme files every view uses:
- Copy the source and every file it uses:
- Add the files to your app target.
- Set
minSdkto 24 or higher and add the dependencies:
- Copy the theme files every view uses:
- Copy the source and every file it uses:
- Update the
com.esuiss.uipackage names to match your project.
Usage
Replace chartData with your records and change each dataKey to match your fields. Add a Bar and a chartConfig entry for each extra series. The component takes no props.
