#43: make sure the chart redraws at the appropriate time.