Histogram add animation func