Add timer.cancel to chartpanel