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

19 lines (16 loc) 605 B
module.exports = function highlight_sidebar_element(params, highlight_class, duration=4000){ if (highlight_class.indexOf('slider') < 0){ d3.select(params.root+' .'+highlight_class) .style('background','#007f00') .style('box-shadow','0px 0px 10px 5px #007f00') .transition().duration(1).delay(duration) .style('background','#FFFFFF') .style('box-shadow','none'); } else { d3.select(params.root+' .'+highlight_class) .style('box-shadow','0px 0px 10px 5px #007f00') .transition().duration(1).delay(duration) .style('box-shadow','none'); } };