Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#firstChart").D3Chart(d3FirstOptions);
- $("#secondChart").D3Chart(d3SecondOptions);
- (function ($) {
- $.fn.D3Chart = function (extOpt) {
- //...
- function drawBars() {
- //...
- rect.on("mouseover", function (d) {
- var dpChannel = d3.select(this.parentNode).datum();
- //...
- });
- }
- //...
- })(jQuery);
- .on("mouseover.firstchart", ...)
- .on("mouseover.secondchart", ...)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement