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
25 lines (18 loc) • 544 B
JavaScript
var demo_text = require('./demo_text');
var two_translate_zoom = require('../zoom/two_translate_zoom');
var sim_click = require('./sim_click');
module.exports = function play_reset_zoom(){
function run(params){
var text = 'Reset zoom by double-clicking\n';
demo_text(params, text, 4000);
setTimeout(sim_click, 2000, params, 'double', 300, 300);
setTimeout(two_translate_zoom, 2400, params, 0, 0, 1);
}
function get_duration(){
return 4500;
}
return {
run: run,
get_duration: get_duration
};
};