suiss/uim · Chart

Bar Chart Multiple

Grouped bars comparing desktop and mobile visitors side by side for each month.

Bar Chart Multiple is an open-source mobile chart from suiss/uim, drawn with react-native-svg for React Native and Expo, with SwiftUI and Jetpack Compose versions built from the same design tokens. The @esuiss/uim CLI copies its source into your project, so you own the code.

iOS
Bar (multiple) on iOS in light mode

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

$ pnpm dlx @esuiss/uim@latest add bar-chart-multiple

The CLI also adds what it builds on: Card, Chart.

Manual

  1. Add the pieces it builds on: Card, Chart.

  2. Copy the source into components/charts/bar-chart-multiple.tsx:

uniwind/components/charts/bar-chart-multiple.tsx
import {
  Card,
  CardContent,
  CardDescription,
  CardHeader,
  CardTitle,
} from "@/components/ui/card"
import {
  Bar,
  BarChart,
  CartesianGrid,
  type ChartConfig,
  ChartContainer,
  ChartTooltip,
  ChartTooltipContent,
  XAxis,
  1. Update the import paths to match your project.

Usage

import { BarChartMultiple } from "@/components/charts/bar-chart-multiple"
<BarChartMultiple />

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.