# Ranking Bars (classic) — React Native chart for Expo

> Auto-sorted rows.

Leaderboards with animated widths.

- Docs: https://expokit.in/docs/charts/ranking-bars
- Tier: Free (expo-charts, MIT)
- Component: `<HorizontalBarChart />`
- Category: Classic
- Also called: ranking bar chart, leaderboard chart, horizontal bar chart
- Platforms: iOS, Android, web
- Expo Go: yes (draws with react-native-svg)
- Variants: Ranking

## Installation

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

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

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `data` | `ChartPoint[]` | — | Rows. |
| `sort` | `boolean` | `true` | Sort descending. |

## FAQ

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

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

### Does Ranking Bars (classic) 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 Ranking Bars (classic) free?

Yes. Ranking Bars (classic) is in expo-charts, which is free and MIT-licensed.

## More

- Live preview, variants and code: https://expokit.in/docs/charts/ranking-bars
- 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
