# Bar Chart — React Native chart for Expo

> Grouped, stacked, horizontal, lollipop.

Vertical or horizontal bars with rounded corners, grouped or stacked (including 100%), hatched / duotone / striped fills, glow, lollipop shape, negative colours and a hatched buffer bar for in-progress periods.

- Docs: https://expokit.in/docs/charts/bar-chart
- Tier: Free (expo-charts, MIT)
- Component: `<BarSeriesChart />`
- Category: Cartesian
- Also called: bar chart, column chart, bar graph
- Platforms: iOS, Android, web
- Expo Go: yes (draws with react-native-svg)
- Variants: Interactive, Multiple, Stacked + legend, Lollipop, Duotone & striped, Glow & buffer, Percent, Horizontal, Custom label, Negative

## Installation

```bash
npx expo install expo-charts react-native-svg
```

Import: `import { BarSeriesChart } from "expo-charts";` — then render `<BarSeriesChart data={…} />`.

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `layout` | `"vertical" \| "horizontal"` | `"vertical"` | Bar direction. |
| `stacked` | `boolean` | `false` | Stack series. |
| `stackOffset` | `"none" \| "expand"` | `"none"` | 100% stacked bars. |
| `radius` | `number` | `6` | Corner radius (outer ends only when stacked). |
| `barShape` | `"bar" \| "lollipop"` | `"bar"` | Thin stem with a round head. |
| `fillVariant` | `FillVariant` | `area: "gradient", bar: "solid"` | gradient, gradient-reverse, solid, dotted, lines, hatched, striped, duotone, duotone-reverse. |
| `glow` | `boolean` | `false` | Glowing bars. |
| `bufferLast` | `boolean` | `false` | Hatch the last bar. |
| `barGap / categoryGap / maxBarSize` | `number` | `4 / 0.25 / 56` | Spacing controls. |
| `negativeColor` | `string` | — | Colour for negative values. |
| `getColor` | `(value, index, key) => string` | — | Per-bar colour. |
| `labelInside` | `boolean` | `false` | Horizontal: category label inside the bar. |

## FAQ

### How do I make a bar chart in React Native?

Use ExpoKit's Bar Chart: install the expo-charts package (npx expo install expo-charts react-native-svg) and render <BarSeriesChart data={…} />. It's animated and touchable, and works on iOS, Android, web and in Expo Go.

### Does Bar Chart work in Expo Go?

Yes. It draws with react-native-svg, which Expo Go includes, so it runs on iOS and Android with no development build.

### Is Bar Chart free?

Yes. Bar Chart is in expo-charts, which is free and MIT-licensed.

## More

- Live preview, variants and code: https://expokit.in/docs/charts/bar-chart
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
