anchor.diff:                      )
                       .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];
  +                            case i: return gisticLegendFillTypes[i];
                           }
                       })
                       .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];
  +                            case i: return gisticLegendStrokeTypes[i];
                           }
                       })
                       .attr("stroke-width", function (d, i) {
  
positive.code:                     .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];
                          }
                      });
          }
  
negative.code:                     .style("text-anchor", "front")
                      .text(function(d, i) {
                          switch (i) {
                              case i: return mutationTypes[i];
                          }
                      });
          } else {  //Legend for Gistic
  