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
21 lines (13 loc) • 501 B
JavaScript
module.exports = function reset_cat_opacity(params){
_.each(['row','col'], function(inst_rc){
d3.selectAll(params.root+' .'+inst_rc+'_cat_group')
.selectAll('rect')
.style('opacity', function(){
var inst_opacity = d3.select(this).style('opacity');
if (d3.select(this).classed('cat_strings') && d3.select(this).classed('filtered_cat') === false){
inst_opacity = params.viz.cat_colors.opacity;
}
return inst_opacity;
});
});
};