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

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