Nate
unread,Apr 4, 2011, 3:35:50 PM4/4/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?