Solution for Charts (react-native) [on hold]

I'm new to react-native and I want to use chart in my application. I've been trying use some libs:

  1. react-native-pathjs-charts
  2. react-native-ios-charts

But they are not really good choices (bad performance, hard to use). I want to ask, which of the followings is the best solution for me !!!?

  1. Use D3 + ART draw chart by my self.
  2. Find a good native lib and try to port it to react-native.

You can check my repo: https://github.com/wuxudong/react-native-charts-wrapper

Support both android and ios, Latest MpAndroidChart and Charts are used.

I am late to the game but victory-native.

https://github.com/FormidableLabs/victory-native

It is very declarative and the API is very usable.

I would try react-native-svg-charts, it's easy to setup and very customisable

You should have a look here: https://js.coach/react-native?search=chart, you'll probably find something that would suit your needs

I know it is a quite old question but I was trying to solve the same recently. I needed to implement just an animated column chart. Even though I like D3 and ART library they are animated in JS thread. It could introduce performance issues. I am not about to share the library with you guys (I don't have any tips here). But if anyone is interested in getting an idea how to do super fast and animated column chart in RN - check out this article - https://medium.com/react-native-motion/animated-graph-in-react-native-51354af2bdb0

Comments

Popular posts from this blog

Meaning of `{}` for return expression

Get current scroll position of ScrollView in React Native

flutter websocket connection issue