clustergrammer
Version:
This is a clustergram implemented in D3.js. I started from the example http://bost.ocks.org/mike/miserables/ and added the following features
15 lines (11 loc) • 361 B
JavaScript
var two_translate_zoom = require('./two_translate_zoom');
module.exports = function ini_doubleclick(cgm) {
var params = cgm.params;
// disable double-click zoom
d3.selectAll(params.viz.zoom_element)
.on('dblclick.zoom', null);
d3.select(params.viz.zoom_element)
.on('dblclick', function() {
two_translate_zoom(cgm, 0, 0, 1);
});
};