www/js/visuility.js
// Setup service resizing and updating the force diagram
Setup service resizing and updating the force diagram
Setup service resizing and updating the force diagram
function resize(e){
    w = d3.select("#chart").node().getBoundingClientRect().width;
    h = d3.select("#chart").node().getBoundingClientRect().height;
    svg.attr("width", w);
    svg.attr("height", h);
    force.size([w, h]).resume();
}
function resize ( e ) { w = d3 . select ( "#chart" ) . node ( ) . getBoundingClientRect ( ) . width ; h = d3 . select ( "#chart" ) . node ( ) . getBoundingClientRect ( ) . height ; svg . attr ( "width" , w ) ; svg . attr ( "height" , h ) ; force . size ( [ w , h ] ) . resume ( ) ; }
Setup service resizing and updating the force diagram
Setup service resizing and updating the force diagram