flot/flot — pull request #42 by lukesampson (2012-04-26 02:53:26+00:00)
Title: Plugin to draw legend on canvas instead of HTML

This is based on [rokstrnisa's pull request](https://github.com/flot/flot/pull/36), with some improvements to address some concerns from OleLaursen.

1. Fonts are no longer hard-coded, but use the built-in canvas routines and try to use the placeholder's font style.
2. Implemented as a plugin, which leaves the main library untouched (no 'html'/'canvas' switch). So you just need to add:

3. I've hand-tested in Chrome (18), Firefox (5, 11, 12) and Internet Explorer (8, 9). The font size is slightly smaller than expected in Firefox, but ok.

I'm hoping that since this doesn't touch the main code, it'd be ok to add this plugin to the trunk.