Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. $("#firstChart").D3Chart(d3FirstOptions);
  2. $("#secondChart").D3Chart(d3SecondOptions);
  3.  
  4. (function ($) {
  5. $.fn.D3Chart = function (extOpt) {
  6. //...
  7. function drawBars() {
  8. //...
  9. rect.on("mouseover", function (d) {
  10. var dpChannel = d3.select(this.parentNode).datum();
  11. //...
  12. });
  13. }
  14. //...
  15. })(jQuery);
  16.  
  17. .on("mouseover.firstchart", ...)
  18. .on("mouseover.secondchart", ...)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement