Open msalcala11 opened 1 month ago
Can confirm this somewhat fixes the issue. The path of the graph still refuses to interpolate between some data changes. Eg. between two data sets that mirror each other. I think that this could be a skia limitation however
@ArtKullashi Thanks for testing. Yes, I've noticed interpolations can fail between certain data changes if there are more than 45 data points (and the reliability of interpolation seems to decrease as the number of data points increases). The solution that has worked for me has been to scale graph data down to 45 data points
When the point data is changed at {animated: true}, will the chart have a dynamic change effect? I am a static change here, no animation effect.
When the point data is changed at {animated: true}, will the chart have a dynamic change effect? I am a static change here, no animation effect.
@Pahkoo Yes, in my testing, this PR should cause the chart to animate on point data changes when the animated
prop is set to true
so long as the point data arrays are of equal length and do not exceed 45 data points. Is it possible that your data arrays contain more than 45 data points or are not of equal length?
Running the example project and clicking the "Refresh" button under the graph to change the graph's data does not result in the graph animating from the initial data to the new data for me. This 1-line change gets animations on data changes working as expected.