What library should I use to create costume chart in react native?

๐Ÿ‘:1

I used react-native pure charts.

Installation via npm:

npm install react-native-pure-chart --save

Usage example for line chart:

render(
...
let sampleData = [30, 200, 170, 250, 10]
<PureChart data ={sampleData} type='line' />
...
);

Further information:
https://reactnativeexample.com/react-native-chart-library-that-only-using-react-native-pure-components/ ,
https://github.com/oksktank/react-native-pure-chart

๐Ÿ‘:0

I prefer using Chart.js, It is very easy to get started and understand. Almost every type of chart is supported, and you get full fledge option to customize things with tons of plugins availaible.

For the need of yours, I think this Horizontal bar of chart.js would be worth a look -> http://www.chartjs.org/samples/latest/charts/bar/horizontal.html

Leave a comment