philackm / ScrollableGraphView

An adaptive scrollable graph view for iOS to visualise simple discrete datasets. Written in Swift.
MIT License
5.31k stars 472 forks source link

Ease out animation bug #171

Closed omerbaskurt closed 4 years ago

omerbaskurt commented 5 years ago

Hi, thanks for this great library. I noticed a problem on the bar graph when reloading a new data set with default animation. This behavior does not happen when not using any animation or using the elastic one. This is the first state of the graph:

1

After reloading with the new data set:

2

Notice how the second and the fourth one is slightly thicker than others becuase their first state was higher. Second data set was all 0s. The same problem occurs the other way around too. It doesn't go all the way up to the last reference line.