Scale canvas by devicePixelRatio to support hi-dpi/retina screens

Devices that have a pixel-to-point ratio other than 1 display a poor representation of the graph. Scale the canvas pixel dimensions by the browsers `devicePixelRatio`.