Solution for Charts (react-native)

匿名 (未验证) 提交于 2019-12-03 08:44:33

问题:

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.

回答1:

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

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



回答2:

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.



回答3:

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



回答4:

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



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!