hive/html/d3js/sunburst_hierarchy.js
// Fade all but the current sequence, and show it in the breadcrumb trail.
Fade all but the current sequence, and show it in the breadcrumb trail.
Fade all but the current sequence and show it in the breadcrumb trail .
function mouseover(d) {
          var percentage = (100 * d.value / totalSize).toPrecision(3);
          var percentageString = percentage + "%";
          if (percentage < 0.1) {
            percentageString = "< 0.1%";
          }
          d3.select("#percentage")
              .text(percentageString);
          d3.select("#explanation")
              .style("visibility", "");
          var sequenceArray = getAncestors(d);
          updateBreadcrumbs(sequenceArray, percentageString);
          d3.selectAll("path")
              .style("opacity", 0.3);
          vis.selectAll("path")
              .filter(function(node) {
                        return (sequenceArray.indexOf(node) >= 0);
                      })
              .style("opacity", 1);
        }
function mouseover ( d ) { var percentage = ( 100 * d . value / totalSize ) . toPrecision ( 3 ) ; var percentageString = percentage + "%" ; if ( percentage < 0.1 ) { percentageString = "< 0.1%" ; } d3 . select ( "#percentage" ) . text ( percentageString ) ; d3 . select ( "#explanation" ) . style ( "visibility" , "" ) ; var sequenceArray = getAncestors ( d ) ; updateBreadcrumbs ( sequenceArray , percentageString ) ; d3 . selectAll ( "path" ) . style ( "opacity" , 0.3 ) ; vis . selectAll ( "path" ) . filter ( function ( node ) { return ( sequenceArray . indexOf ( node ) >= 0 ) ; } ) . style ( "opacity" , 1 ) ; }
Fade all but the current sequence, and show it in the breadcrumb trail.
Fade all but the current sequence and show it in the breadcrumb trail .
//          perc.text(percentageString); //        perc.style("visibility",""); // .attr("transform", "translate(" + width / 2 + "," + height / 2 + ")"); // Fade all the segments. // Then highlight only those that are an ancestor of the current segment.