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
17 lines (15 loc) • 440 B
JavaScript
var utils = require('../Utils_clust');
module.exports = function resize_col_text(params, svg_group){
svg_group
.selectAll('.col_label_group')
.select('text')
.style('font-size', params.labels.default_fs_col + 'px')
.text(function(d){ return utils.normal_name(d);});
svg_group
.selectAll('.col_label_group')
.each(function() {
d3.select(this)
.select('text')[0][0]
.getBBox();
});
};