anchor.diff:                      .style("text-anchor", "front")
                       .text(function(d, i) {
                           switch (i) {
  -                            case 0: return gisticLegendText[0];
  -                            case 1: return gisticLegendText[1];
  -                            case 2: return gisticLegendText[2];
  -                            case 3: return gisticLegendText[3];
  -                            case 4: return gisticLegendText[4];
  -                            case 5: return gisticLegendText[5];
  +                            case i: return gisticLegendText[i];
                           }
                       });
           }
  
positive.code:                     )
                      .attr("fill", function (d, i) {
                          switch(i) {
                              case 0: return gisticLegendFillTypes[0];
                              case 1: return gisticLegendFillTypes[1];
                              case 2: return gisticLegendFillTypes[2];
                              case 3: return gisticLegendFillTypes[3];
                              case 4: return gisticLegendFillTypes[4];
                              case 5: return gisticLegendFillTypes[5];
                          }
                      })
                      .attr("stroke", function (d, i) {
                          switch (i) {
                              case 0: return gisticLegendStrokeTypes[0];
                              case 1: return gisticLegendStrokeTypes[1];
                              case 2: return gisticLegendStrokeTypes[2];
                              case 3: return gisticLegendStrokeTypes[3];
                              case 4: return gisticLegendStrokeTypes[4];
                              case 5: return gisticLegendStrokeTypes[5];
                          }
                      })
                      .attr("stroke-width", function (d, i) {
  
negative.code:         //Add Noise to Data
          var ramRatio = 0;
          if (data_type_copy_no == "gistic") {
              ramRatio = 20;
          }
          //Create SVG dots
          svg.selectAll("path")
  