反应支持用户 onPress 的原生图表/图形库? [英] react native chart/graph library that supports user onPress?

查看:103
本文介绍了反应支持用户 onPress 的原生图表/图形库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个 React Native 项目,我需要在其中显示一个包含 4 个数据的条形图,并且我需要我的图表可点击,以便用户可以点击每个数据.有没有推荐的库?我曾尝试使用 react-native-chart-kit,但它们似乎不支持用户点击.提前致谢!

I am currently working on a react native project where I need to present a bar chart with 4 data and I need my chart to be clickable so that users can click on every data. Is there any libraries to recommend? I have tried using react-native-chart-kit and it seems like they do not support user clicks. Thanks in advance!

推荐答案

我觉得你应该试试

https://github.com/wuxudong/react-native-charts-wrapper

我一直在我的项目中使用它.我支持在条形图上点击列,就像你问的一样,它仍然维护良好.

I have been using it for my project. I support column click on the bar chart just like you asked it still well-maintained.

这篇关于反应支持用户 onPress 的原生图表/图形库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆