# @chartiful/react-native-line-graph

> React Native line graph.

Latest version **0.1.2** (published 2020-05-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install @chartiful/react-native-line-graph
pnpm add @chartiful/react-native-line-graph
yarn add @chartiful/react-native-line-graph
bun add @chartiful/react-native-line-graph
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2020-05-31 |
| First published | 2020-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sean Watters |
| Maintainers | sean_watters |
| Keywords | react-native, charts, graphs |

## Links

- npm: https://www.npmjs.com/package/@chartiful/react-native-line-graph
- Repository: https://github.com/chartiful/react-native-charts
- Homepage: https://github.com/chartiful/react-native-charts/tree/master/line-graph
- Issues: https://github.com/chartiful/react-native-charts/issues
- npm.io page: https://npm.io/package/@chartiful/react-native-line-graph

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2020-05-31
- 0.1.1 — 2020-05-31
- 0.1.0 — 2020-05-29

## README

## Line Graph

**[package](https://www.npmjs.com/package/@chartiful/react-native-line-graph)**

<img src="https://seanwatters.io/images/@chartiful-react-native-line-graph.png" height="400px" alt="bar graph image">

### Installation

```bash
npm i @chartiful/react-native-chart-builder @chartiful/react-native-line-graph
```

### Example

```jsx
import LineGraph from '@chartiful/react-native-line-graph'

<LineGraph
  data={[10, 15, 7, 20, 14, 12, 10, 20]}
  width={375}
  height={300}
  isBezier
  hasShadow
  baseConfig={{
    startAtZero: false,
    hasXAxisBackgroundLines: false
  }}
  style={{
    marginTop: 30
  }}
/>
```

### Interface

- `height`: number

- `width`: number

- `data`: `<Array>number`

- `labels`?: `<Array>string`  (defaults to `[1, 2, 3, ...]`)

- `hasLine`?: boolean  (defaults to `true`)

- `lineColor`?: string  (defaults to `'#000000'`)

- `lineWidth`?: number (defaults to `3`)

- `hasDots`?: boolean  (defaulst to `true`)

- `dotColor`?: string  (defaults to `'#000000'`)

- `dotSize`?: number (defaulse to `5`)

- `isBezier`?: boolean  (defaults to `false`)

- `hasShadow`?: boolean  (defaults to `false`)

- `style`?: `ReactNative.StyleSheet`

- `baseConfig`?: `BaseChartConfig` (found here: [link](https://github.com/chartiful/react-native-charts#readme))

---
_Source: https://npm.io/package/@chartiful/react-native-line-graph · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
