hongyin163 / react-native-chart-android

react native chart modules come from mpandroidchart.
206 stars 81 forks source link

Support for animations while rendering #27

Closed prithsharma closed 8 years ago

prithsharma commented 8 years ago

I think animate should also be exposed as a function to be called on the component, will need to work on that. I am not very well versed with Java, @hongyin163 may be you can guide me?

Right now, the chart will be animated while rendering the component(or re-rendering on updating dataset) by passing the appropriate config in the dataSet like following -

{
  xValues: ,
  yValues: [],
  animateX: {
    duration: <integer> [time in milliseconds],
  },
}

or

{
  xValues: ,
  yValues: [],
  animateXY: {
    durationX: <integer> [time in milliseconds],
    durationY: <integer> [time in milliseconds],
  }
}