Legend - hyperlinks?

7 views
Skip to first unread message

Nate

unread,
Apr 4, 2011, 3:35:50 PM4/4/11
to Flotr Javascript Plotting Library
Are there any plans to add a hyperlink capability into the legend?
It'd be sweet to be able to call a custom function when the user
clicks on one of the legend items.

I've looked into using prototype's observe method, but the method does
not 'observe' items which have been inserted via ajax, even if $$
('.flotr-legend tr').observe is called in the onSuccess:function of
the Ajax.Updater.

observe works fine before ajax is used though.

I guess I could do a custom function to swap out the legend items for
links after the flotr.draw call, but that seems a bit messy.

Has anyone else hooked events/hyperlinks to legend items?

Nate

unread,
May 31, 2011, 2:03:49 PM5/31/11
to fl...@googlegroups.com
I ended up writing a custom function to do the updating. Just thought I'd post this so nobody else wastes brain cycles on this post. :)
Reply all
Reply to author
Forward
0 new messages