tomauty / react-native-chart

[NOT MAINTAINED] :bar_chart: Add line, area, pie, and bar charts to your React Native app
http://tomauty.github.io/react-native-chart
MIT License
1.58k stars 237 forks source link

Bezier line graphs? #100

Open rclai opened 8 years ago

rclai commented 8 years ago

Just wondering if your library is able to make line graphs use bezier lines instead of just straight lines?

tomauty commented 8 years ago

I need to learn a bit more about the ART/Path API to get this right. Feel free to educate me or open a PR :)

rclai commented 8 years ago

Same but I just looked it up and I think this might be what you need. Check out the curveTo method in the ART library, it creates a bezier curve.

Also looks like we're in luck, React Native does support the bridging of bezier lines: here and here

tomauty commented 8 years ago

Awesome. My plan will be to support the following:

interpolation: 'straight' | 'bezier'

Does straight make sense in contrast to bezier? Or is there a better name 😄

rclai commented 8 years ago

Yeah, I can't think of anything else other than straight lol.

siboulet commented 8 years ago

Also very interested in this feature!

ryancoughlin commented 8 years ago

Just what I was looking for!

harshq commented 7 years ago

Any update on this guys ?

skleest commented 7 years ago

+1

tomauty commented 7 years ago

As a generic FYI — I am no longer able to maintain this library. I recommend checking out victory-native as it's much more maintained.