add fixed width and height to canvas
modify draw directive to draw each point and line in plotData to the canvas