anchor.diff:      }
       return -1;
   }
  +
  +function seachIndexBottom(arr, ele) {
  +    for( var i = 0; i < arr.length; i++) {
  +        if (parseFloat(ele) > parseFloat(arr[i])) {
  +            continue ;
  +        } else if (parseFloat(ele) == parseFloat(arr[i])) {
  +            return i;
  +        } else {
  +            return i - 1;
  +        }
  +    }
  +    return arr.length - 1 ;
  +}
  +
  +
  +function seachIndexTop(arr, ele) {
  +    for( var i = 0; i < arr.length; i++) {
  +        if (ele <= arr[i]) {
  +            return i;
  +        } else {
  +            continue;
  +        }
  +    }
  +    return arr.length - 1;
  +}
  +
   
   function median(v) {
       var half = Math.floor(v.length/2);
  
positive.code:     var dashLineBottom = svg.append("line")
              .attr("x1", midLine)
              .attr("x2", midLine)
              .attr("y1", quan1)
              .attr("y2", top)
              .style("stroke-dasharray", ("3, 3"))
              .attr("stroke", "grey")
  
negative.code:                             case 3: return mutationTypes[3];
                              case 4: return mutationTypes[4];
                              case 5: return mutationTypes[5];
                              case 6: return mutationTypes[6];
                          }
                      });
          } else {  //Legend for Gistic
              var legend = svg.selectAll(".legend")
                      .data(gisticLegendText)
                      .enter().append("g")
                      .attr("class", "legend")
                      .attr("transform", function(d, i) { return "translate(610, " + (30 + i * 15) + ")"; })
              legend.append("path")
                      .attr("width", 18)
                      .attr("height", 18)
  