d3plus / d3plus

A javascript library that extends D3.js to enable fast and beautiful visualizations.
MIT License
1.63k stars 188 forks source link

Capturing double click events #606

Open lambdamusic opened 7 years ago

lambdamusic commented 7 years ago

Hi,

is there any way to capture double click events on the awesome Rings visualization (http://d3plus.org/examples/basic/9034389/) ? Or is it something maybe doable after upgrading to d3plus 2.0?

Something like this:

.mouse({
    "doubleclick": function(d, viz) {
        console.log("double-clicked!");
    }
})

Thanks!

davelandry commented 6 years ago

This would probably involve overloading the standard "click" event, like in this example: http://bl.ocks.org/couchand/6394506