简体   繁体   English

使用标签反应原生散点图

[英]React Native Scatter Plot with Tags

I've found a couple of packages that provide some scatter plots for React Native like react-native-scatter-chart , react-native-chart-kit , react-native-chartjs however I want to know If there is anything a bit more customizable.我找到了一些为 React Native 提供散点图的软件包,如react-native-scatter-chartreact-native-chart-kitreact-native-chartjs但是我想知道是否还有更多可定制。

I'm looking for a plot where I can add a few labels on the scatter points like in the following image:我正在寻找一个可以在散点上添加几个标签的图,如下图所示:

在此处输入图片说明

Have you previously worked with something similar on React Native?你以前在 React Native 上做过类似的事情吗? Did you find any useful packages or developed a custom solution?您是否找到了任何有用的软件包或开发了自定义解决方案?

In my opinion the best JS library to do this is D3, with that being said;在我看来,最好的 JS 库是 D3,话虽如此;

Check this out: https://hswolff.com/blog/react-native-art-and-d3/看看这个: https : //hswolff.com/blog/react-native-art-and-d3/

Basically you can use ART (of react-native) and D3 together to create lovely graphs.基本上,您可以将 ART(来自 react-native)和 D3 一起使用来创建可爱的图形。 I'm not sure exactly what the limitations are, but it seems like the best option for now.我不确定到底有什么限制,但它现在似乎是最好的选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM