javascript - Open pop up upon clicking a datapoint in chart -
i using dimplejs (which amazing!) make charts. want add functionality upon clicking data point on line chart, popup opens shows more info data point. want create dynamic url each data point on chart accomplish i'm unable think how might able this.
i highly appreciate on this.
thanks!
you can add on click event series this:
myseries.addeventhandler("click", function (e) { alert("hey clicked " + e.xvalue); });
this show javascript pop-up containing x value of point clicked. can more information eventargs object (e
in example above) here: https://github.com/pmsi-alignalytics/dimple/wiki/dimple.eventargs
you can see basic line chart example containing line above here:
Comments
Post a Comment