An chart library with animation based on ART module.
Before starting using the animate chart library,you have to add the ART module to your project if you are deleloping iOS platform app.
- drag
node_modules/react-native/Libraries/ART/ART.xcodeproj
to you project'slibraries
foulder - Link the
ART.a
module
Then save the following code named Demo.js
as an component.
const React,{ Components } from 'react';
const RNAChart from 'react-native-animate-chart';
export default class Demo extends Components{
render(){
return(
<RNAChart
width="320"
height="300"
title="Awesome React Native"
subtitle="library for charting things"
tootip = {{
text:function(index,data){
return `The ${index} data is ${data}`
}
}}
xAxis = {{
crosshair:true
}}
/>
)
}
}
Then refresh your simulator or shake your device to reload,you will see the animating chart.
TODOS:
- Pie
- Doughnut
- Line chart
- Histogram
- Radar Chart