use chartjs min max and update footer