Friday 15 March 2013

jqplot legend event handler click -


Hi, I'm trying to insert the event handler on each line on the legend of jqplot

$ ('# Chart 3'). Bind ('jqplotDataClick', function (ev, seriesIndex, pointIndex, data) {warning (1);});); But for legend lines

This has worked for me:

  $ ('# Chart-id tr.jqplot-table-legend'). Dam ('click', function () {warning ($ (this). Child (). Last (). Text ());});   

So what does this alert is the name of the chain.

No comments:

Post a Comment