animated line plots using the canvas.