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 (12 loc) • 385 B
JavaScript
module.exports = function calc_clust_height(viz){
// the clustergram/matrix height is the svg width minus:
// the margin of the clustergram on the top
// the dendrogram
// the bottom_space
var ini_clust_height = viz.svg_dim.height
- viz.clust.margin.top
- viz.dendro_room.col
- viz.bottom_space;
viz.clust.dim.height = ini_clust_height;
return viz;
};