react-native-peity
Version:
Progressive <svg> pie, donut, bar and line charts for React-Native http://benpickles.github.io/peity
28 lines (17 loc) • 574 B
Markdown
# react-native-peity
Port for [peity](https://github.com/benpickles/peity)
## Install from npm
> `react-native-peity`
## Basic usage
```jsx
import { Line } from 'react-native-peity'
<>
<Line data={[1, 5, 4, 2, 2]} />
<Pie data={6} min={0} max={10} />
<Bar data={[1, 5, 4, 2, 2]} />
<Pie data={6} min={0} max={10} innerRadius={3} /> {/* donut */}
</>
```
<img src="screencast-Genymotion-2019-10-09_12.37.21.283.gif" alt="ViewPager" width="300" height="500">
## Docs
More detailed usage can be found at benpickles.github.io/peity.