clear canvas before drawing new chart