margelo / react-native-graph

πŸ“ˆ Beautiful, high-performance Graphs and Charts for React Native built with Skia

Home Page:https://margelo.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple lines in graph

Ami-Gohel opened this issue Β· comments

This is not supporting multiple lines in a single chart.

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

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 ?

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 hello@margelo.io :)

@mrousavy, would a PR be considered?

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

@sidferreira

@mrousavy, would a PR be considered?

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

@sidferreira a PR would be much appreciated πŸ™πŸ½

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

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

I'll try

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

I also tried to make the graph generic type

I'll look into it, many thanks πŸ™πŸ½

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

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

Any updates on this feature request?

@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 :)