Skip to content

πŸ“ˆ An chart library with animation based on react ART module and Animated.

License

Notifications You must be signed in to change notification settings

react-native-china/react-native-animate-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2f58b91 Β· Dec 1, 2017

History

86 Commits
Feb 19, 2017
Mar 1, 2017
Feb 21, 2017
Feb 8, 2017
Feb 24, 2017
Jan 22, 2017
Feb 18, 2017
May 30, 2016
Dec 1, 2017
Feb 21, 2017
Feb 19, 2017
Feb 23, 2017
Feb 20, 2017

Repository files navigation

react-native-animate-chart

An chart library with animation based on ART module.

NPM

Build Status MIT Licence depedencies

Get Started

Before starting using the animate chart library,you have to add the ART module to your project if you are deleloping iOS platform app.

  1. drag node_modules/react-native/Libraries/ART/ART.xcodeproj to you project's libraries foulder
  2. 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

Releases

No releases published

Packages

No packages published