javascript - how to describe or highlight certain points in charts and give hyperlink on that points -


i using protovis charts....i kind of new here... want want show area charts. , in want show few points different color or highlight point...and when click on point want open new page or show panel on same page...any idea how protovis? if not possible protovis can suggest other framework that?

i think you're looking this:

vis.add(pv.area)     .data(data)     .left(function(d) x(d.x))     .height(function(d) y(d.y))     .anchor("top").add(pv.dot)         .size(20)         .event("click", function (d) alert("clicked point " + this.index)); 

the important part .event("click", function (d) some_code()) bit. if you're using pure javascript, .event("click", function (d) { return some_code(); }).

here's working (albeit sloppy) example.

you might want note protovis being superseded mike bostock's d3.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -