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
18 lines (15 loc) • 450 B
JavaScript
module.exports = function update_reorder_buttons(tmp_config, params){
_.each(['row','col'], function(inst_rc){
var other_rc;
if (inst_rc === 'row'){
other_rc = 'col';
} else {
other_rc = 'row';
}
d3.selectAll(params.root+' .toggle_'+other_rc+'_order .btn')
.filter(function(){
return d3.select(this).attr('name') === tmp_config.inst_order[inst_rc];
})
.classed('active',true);
});
};