sunxingbao / flot

Automatically exported from code.google.com/p/flot
0 stars 0 forks source link

HTML-code in the legend #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello!

Is it somehow possible to do some formatting (e.g. adding a hyperlink) with
the legend? 

Thanks!

Original issue reported on code.google.com by sdsf...@gmail.com on 6 Dec 2007 at 8:09

GoogleCodeExporter commented 9 years ago
Currently you can either patch it up after the fact by catching the label cells 
with
a bit jQuery (you should be able to catch 'em with $(".legendLabel")) or 
specify HTML
code as input to the labels.

This is a bit rotten however, so I've added support in SVN trunk for specifying 
a
labelFormatter function in the legend. It's documented in the API 
documentation. I'll
make a 0.2 release very soon with this in.

Original comment by olau%iol...@gtempaccount.com on 7 Dec 2007 at 10:07