implement minmaxchart animation