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

Bezier line graphs?

Open rclai opened this issue 9 years ago • 9 comments

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

rclai avatar Jul 05 '16 14:07 rclai

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

tomauty avatar Jul 07 '16 14:07 tomauty

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

rclai avatar Jul 07 '16 22:07 rclai

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 😄

tomauty avatar Jul 08 '16 21:07 tomauty

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

rclai avatar Jul 10 '16 13:07 rclai

Also very interested in this feature!

siboulet avatar Oct 07 '16 00:10 siboulet

Just what I was looking for!

ryancoughlin avatar Nov 07 '16 02:11 ryancoughlin

Any update on this guys ?

harshq avatar Mar 20 '17 05:03 harshq

+1

skleest avatar Jun 01 '17 18:06 skleest

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.

tomauty avatar Jul 07 '17 20:07 tomauty