# Sparkline — React Native chart for Expo

> Tiny inline trends.

For KPI cards; the last point pulses.

- Docs: https://expokit.in/docs/charts/sparkline
- Tier: Free (expo-charts, MIT)
- Component: `<Sparkline />`
- Category: Classic
- Also called: sparkline, mini line chart, inline trend chart
- Platforms: iOS, Android, web
- Expo Go: yes (draws with react-native-svg)
- Variants: KPI cards

## Installation

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

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

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `data` | `number[]` | — | Values. |
| `showArea / showLastDot` | `boolean` | `true / true` | Extras. |

## FAQ

### How do I make a sparkline in React Native?

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

### Does Sparkline 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 Sparkline free?

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

## More

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