changed the charts to make a new one dynamically instead of update so that we can make sure the axis labels are correct