Skip to content

HTML-code in the legend #85

Closed
dnschnur opened this Issue Sep 28, 2012 · 1 comment

1 participant

@dnschnur
Flot member

Original author: i...@internetschach.de (December 06, 2007 20:09:10)

Hello!

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

Thanks!

Original issue: http://code.google.com/p/flot/issues/detail?id=6

@dnschnur
Flot member

From olau%iol...@gtempaccount.com on December 07, 2007 10:07:34
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.

@dnschnur dnschnur closed this Sep 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.