Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
CSS units in xaxis/yaxis.font #898
Since changing from HTML axis tick labels to canvas draw flot no longer accepts setting the font size of in CSS units. This is a desirable feature because it's pretty common to use the "em" unit to provide website scaling based on device resolution.
Even if the canvas tag doesn't support drawing text using CSS units there should be some kind of hack to do this. Maybe creating a hidden div with size equals to 1em/1in/1ex/etc as a sibling of the canvas on the DOM and then getting its size in pixels using the jQuery.width() and jQuery.height() function to known the pixel to CSS unit ratio and calculate the proper size to draw the fonts.