hive/html/d3js/sankey_plot.js
// the function for moving the nodes
the function for moving the nodes
the function for moving the nodes
function dragmove(d) {
            d3.select(this).attr("transform", 
                "translate(" + (
                       d.x = Math.max(0, Math.min(width - d.dx, d3.event.x))
                    ) + "," + (
                           d.y = Math.max(0, Math.min(height - d.dy, d3.event.y))
                    ) + ")");
            sankey.relayout();
            link.attr("d", path);
          }
function dragmove ( d ) { d3 . select ( this ) . attr ( "transform" , "translate(" + ( d . x = Math . max ( 0 , Math . min ( width - d . dx , d3 . event . x ) ) ) + "," + ( d . y = Math . max ( 0 , Math . min ( height - d . dy , d3 . event . y ) ) ) + ")" ) ; sankey . relayout ( ) ; link . attr ( "d" , path ) ; }
the function for moving the nodes
the function for moving the nodes