# Line Chart — React Native chart for Expo

> Curves, dots, glow and projections.

Multi-series lines with four curve types, dot styles, glow, dashed targets, animated dashes, a projected last segment, gaps for missing data, goal lines and a y axis that can fit the data (stock-style).

- Docs: https://expokit.in/docs/charts/line-chart
- Tier: Free (expo-charts, MIT)
- Component: `<LineSeriesChart />`
- Category: Cartesian
- Also called: line chart, line graph, interactive line chart
- Platforms: iOS, Android, web
- Expo Go: yes (draws with react-native-svg)
- Variants: Multiple, Stock, Goal & gaps, Glow, Dots & labels, Target, Step

## Installation

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

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

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `curve` | `"monotone" \| "natural" \| "linear" \| "step"` | `"monotone"` | Interpolation. |
| `strokeWidth` | `number` | `2` | Line thickness. |
| `strokeVariant` | `"solid" \| "dashed" \| "animated-dashed"` | `"solid"` | Stroke style; animated dashes march. |
| `glow` | `boolean` | `false` | Soft neon glow under the stroke. |
| `showDots` | `boolean` | `line: true` | Point markers. |
| `dotVariant` | `"default" \| "border" \| "colored-border" \| "none"` | `"default"` | Point marker style. |
| `activeDotVariant` | `DotVariant` | `"default"` | Marker at the scrubbed point. |
| `bufferLast` | `boolean` | `false` | Draws the last segment dashed (projection). |
| `dashedKeys` | `string[]` | `[]` | Keys drawn dashed. |

## FAQ

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

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

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

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

## More

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