react-native-responsive-linechart icon indicating copy to clipboard operation
react-native-responsive-linechart copied to clipboard

How do I animate a line chart?

Open apfz opened this issue 2 years ago • 3 comments

After updating the state with new data I would like to animate a line chart.

I tried to do something like this:

data={
    [
      {x: new Animated.Value(0), y: 10},
      {x: new Animated.Value(3), y: 15},
      {x: new Animated.Value(6), y: 9},
    ]
  }

But x is expected to be a number. How can I accomplish this?

apfz avatar Jan 03 '22 20:01 apfz

Did you manage to find a solution? I'm having the same problem

nick-0101 avatar Apr 27 '22 18:04 nick-0101

Unfortunately not, I am still wondering how to do it

apfz avatar May 08 '22 16:05 apfz

I ended up moving to victory native charts. It's a much better project that was animation support and customization.

nick-0101 avatar May 09 '22 11:05 nick-0101