react-native-animated-charts icon indicating copy to clipboard operation
react-native-animated-charts copied to clipboard

Bad precision on interpolation

Open Ulisses1478 opened this issue 4 years ago • 1 comments

When making the calculations on the interpolator i'm getting numbers like 0.9999999999 making the graph change drastically when the numbers are equal when all Y is 1 image

[ {"x": 1610545770.339878, "y": 1}, {"x": 1610459370.352815, "y": 1}, {"x": 1610372970.354123, "y": 1}, {"x": 1610286570.355356, "y": 1}, {"x": 1610200170.356426, "y": 1}, {"x": 1610113770.357573, "y": 1}, {"x": 1610027370.358632, "y": 1}, {"x": 1609940970.359711, "y": 1} ]

Ulisses1478 avatar Jan 06 '21 13:01 Ulisses1478

I'm also facing this issue. Has anyone come up with a fix? Can we have d3 based interpolators to be supplied directly?

RohithBhandaru avatar Mar 04 '22 15:03 RohithBhandaru