make the history chart not overflow