UNPKG

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

14 lines (10 loc) 257 B
module.exports = function check_nodes_for_categories(nodes){ var super_string = ': '; var has_cat = true; _.each(nodes, function(inst_node){ if (inst_node.name.indexOf(super_string) < 0){ has_cat = false; } }); return has_cat; };