move axis label from canvas to html

moving the axis legend to html makes fonts much smoother, especially
when exporting the page to pdf, zooming into the graph with your browser
or creating small graphs.