javascript - How can I make the flot library hovering circle effect stay upon clicking the plot? -



javascript - How can I make the flot library hovering circle effect stay upon clicking the plot? -

as of right now, have graph calculate average slope. having user select left point , right point on line. know how record person clicked, display same circular hover effect clicked until click on 1 time again turn off. there special flot method allow me this, or have manipulate flot documentation (how go doing if need to)?

you need create chart clickable (i guess have that) setting clickable option:

grid: { clickable: true }

than bind event handler plotclick event calls highlight method, when clicking on info point:

$("#placeholder").bind("plotclick", function (event, pos, item) { if (item) { plot.highlight(item.series, item.datapoint); } });

(snippets taken example page)

javascript jquery html hover flot

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -