react-native-graph icon indicating copy to clipboard operation
react-native-graph copied to clipboard

Multiple lines in graph

Open Ami-Gohel opened this issue 3 years ago • 21 comments

This is not supporting multiple lines in a single chart.

Ami-Gohel avatar Jun 14 '22 10:06 Ami-Gohel

Did you find any solution ? i also require multiple lime graph with sort of same implementation.

taatiq882 avatar Jul 23 '22 23:07 taatiq882

This is not supported at the moment. Unfortunately, i don't think we plan to implement this feature anytime soon.

If you or somebody could open a PR for this, that would be great. What do you think @mrousavy ?

chrispader avatar Sep 12 '22 16:09 chrispader

I think this requires a few structural changes and is a little bit of work. We don't plan to implement that anytime soon, but if you need this feature developed by us, contact us at [email protected] :)

mrousavy avatar Sep 13 '22 10:09 mrousavy

@mrousavy, would a PR be considered?

sidferreira avatar Jan 17 '23 21:01 sidferreira

I have creates multiple line graphs with SVG, soon I will make package and make open source.

Ami-Gohel avatar Jan 18 '23 05:01 Ami-Gohel

@sidferreira

@mrousavy, would a PR be considered?

Yes! If you shoot me a PR, we can review it :)

mrousavy avatar Jan 18 '23 10:01 mrousavy

@sidferreira a PR would be much appreciated 🙏🏽

youssdevx avatar Mar 03 '23 17:03 youssdevx

@youssdevx although I had some local work, my main need was cancelled, so I don't know when I'll be able to

sidferreira avatar Mar 03 '23 17:03 sidferreira

Could you maybe push your work? I'll try to work on it

youssdevx avatar Mar 03 '23 17:03 youssdevx

I'll try

sidferreira avatar Mar 03 '23 17:03 sidferreira

https://github.com/sidferreira/react-native-graph-tests

https://github.com/sidferreira/react-native-graph/tree/multiple-graphs

What I tried to do is to create a shared const panGesture = usePanGesture({holdDuration: 100}); that is an argument for the graph, and then you can have a main graph and all others (using pointerEvents="none") will follow it

@youssdevx @mrousavy

sidferreira avatar Mar 03 '23 17:03 sidferreira

I also tried to make the graph generic type

sidferreira avatar Mar 03 '23 17:03 sidferreira

I'll look into it, many thanks 🙏🏽

youssdevx avatar Mar 03 '23 17:03 youssdevx

@youssdevx https://github.com/margelo/react-native-graph/pull/66 too

sidferreira avatar Mar 03 '23 17:03 sidferreira

I still did have the chance to work on this... @mrousavy do you have plans for this feature?

youssdevx avatar May 09 '23 10:05 youssdevx

FYI, the new version of Victory has multiple lines, area charts... => https://github.com/FormidableLabs/victory-native-xl

youssdevx avatar Sep 18 '23 14:09 youssdevx

Any updates on this feature request?

erics1033 avatar Apr 11 '24 12:04 erics1033

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

youssdevx avatar Apr 11 '24 12:04 youssdevx

@mrousavy do you have plans for this feature?

No, I don't have the free time to build this for you guys. But if you submit a PR we can review it and merge it :)

mrousavy avatar Apr 11 '24 12:04 mrousavy