margelo / react-native-graph

📈 Beautiful, high-performance Graphs and Charts for React Native built with Skia
https://margelo.io
MIT License
2.04k stars 115 forks source link

Add `enableSmoothing` prop #100

Open chrispader opened 5 months ago

chrispader commented 5 months ago

Adds a enableSmoothing prop to <LineGraph /> and adds the necessary logic to create the Skia path (createGraphPath) and calculate the Y position for the gesture (getYForX)

techlabz commented 4 months ago

I see an issue trying to use this branch, "synchronously call non-worklet function 'linearInterpolation' " have you guys gotten similar issues?

techlabz commented 4 months ago

Adding 'worklet' inside linearInterpolation solves this issue

techlabz commented 4 months ago

Unfortunately this still doesn't solve, the multiple data points on same day and also if there is a break with the dates on data