anchor.diff:                  bundleIndex = bundleIndex - numOfStudiesWithMutData;
               }
   
  -            hist1.setValue(bundleIndex, 1, formatPercent((numOfCombo/numOfCases) * 100.0));
  -            hist1.setValue(bundleIndex, 2, formatPercent((numOfMuts/numOfCases) * 100.0));
  -            hist1.setValue(bundleIndex, 3, formatPercent((numOfDels/numOfCases) * 100.0));
  -            hist1.setValue(bundleIndex, 4, formatPercent((numOfAmp/numOfCases) * 100.0));
  -
  -            hist2.setValue(bundleIndex, 1, numOfCombo);
  -            hist2.setValue(bundleIndex, 2, numOfMuts);
  -            hist2.setValue(bundleIndex, 3, numOfDels);
  -            hist2.setValue(bundleIndex, 4, numOfAmp);
  -            hist2.setValue(bundleIndex, 5, numOfCases-numOfAmp);
  +            if(!multipleGenes) {
  +                hist1.setValue(bundleIndex, 1, formatPercent((numOfCombo/numOfCases) * 100.0));
  +                hist1.setValue(bundleIndex, 2, formatPercent((numOfMuts/numOfCases) * 100.0));
  +                hist1.setValue(bundleIndex, 3, formatPercent((numOfDels/numOfCases) * 100.0));
  +                hist1.setValue(bundleIndex, 4, formatPercent((numOfAmp/numOfCases) * 100.0));
  +
  +                hist2.setValue(bundleIndex, 1, numOfCombo);
  +                hist2.setValue(bundleIndex, 2, numOfMuts);
  +                hist2.setValue(bundleIndex, 3, numOfDels);
  +                hist2.setValue(bundleIndex, 4, numOfAmp);
  +                hist2.setValue(bundleIndex, 5, numOfCases-numOfAltered);
  +            } else {
  +                hist1.setValue(bundleIndex, 1, formatPercent((numOfAltered/numOfCases) * 100.0));
  +
  +                hist2.setValue(bundleIndex, 1, numOfAltered);
  +                hist2.setValue(bundleIndex, 2, numOfCases-numOfAltered);
  +            }
   
   	        if(bundleIndex == 0 || bundleIndex % 2 == 0 || bundleIndex == numOfStudiesWithMutData-1 || bundleIndex == cancerStudies.length-1)
   	    	    drawChart();
  
positive.code:     google.load("visualization", "1", {packages:["corechart"]});
      var genesQueried = "";
      var shownHistogram = 1;
  
      $(document).ready(function() {
          $("#crosscancer_summary_message").hide();
  
negative.code:         var cancerStudyNames = [<%=studiesNames%>];
          var numOfStudiesWithMutData = <%=cancerStudiesWithMutations.size()%>;
  
          if(!multipleGenes) {
              histogramData.addColumn('string', 'Cancer Study');
              histogramData.addColumn('number', 'Multiple Alterations');
              histogramData.addColumn('number', 'Mutation');
              histogramData.addColumn('number', 'Deletion');
              histogramData.addColumn('number', 'Amplification');
  
              histogramData2.addColumn('string', 'Cancer Study');
              histogramData2.addColumn('number', 'Multiple Alterations');
              histogramData2.addColumn('number', 'Mutation');
              histogramData2.addColumn('number', 'Deletion');
              histogramData2.addColumn('number', 'Amplification');
  
              histogramData3.addColumn('string', 'Cancer Study');
              histogramData3.addColumn('number', 'Multiple Alterations');
              histogramData3.addColumn('number', 'Mutation');
              histogramData3.addColumn('number', 'Deletion');
              histogramData3.addColumn('number', 'Amplification');
              histogramData3.addColumn('number', 'Not altered');
  
              histogramData4.addColumn('string', 'Cancer Study');
              histogramData4.addColumn('number', 'Multiple Alterations');
              histogramData4.addColumn('number', 'Mutation');
              histogramData4.addColumn('number', 'Deletion');
              histogramData4.addColumn('number', 'Amplification');
              histogramData4.addColumn('number', 'Not altered');
          } else {
              histogramData.addColumn('string', 'Cancer Study');
              histogramData.addColumn('number', 'Altered Cases');
  
              histogramData2.addColumn('string', 'Cancer Study');
              histogramData2.addColumn('number', 'Altered Cases');
  
              histogramData3.addColumn('string', 'Cancer Study');
              histogramData3.addColumn('number', 'Altered Cases');
              histogramData3.addColumn('number', 'Not Altered Cases');
  
              histogramData4.addColumn('string', 'Cancer Study');
              histogramData4.addColumn('number', 'Altered Cases');
              histogramData4.addColumn('number', 'Not Altered Cases');
          }
  
          for(var i=0; i < cancerStudies.length; i++) {
              if(i < numOfStudiesWithMutData ) {
                  if(!multipleGenes) {
                      histogramData.addRow([cancerStudyNames[i], 0, 0, 0, 0]);
                      histogramData3.addRow([cancerStudyNames[i], 0, 0, 0, 0, 0]);
                  } else {
                      histogramData.addRow([cancerStudyNames[i], 0]);
                      histogramData3.addRow([cancerStudyNames[i], 0, 0]);
                  }
              } else {
                  if(!multipleGenes) {
                      histogramData2.addRow([cancerStudyNames[i], 0, 0, 0, 0]);
                      histogramData4.addRow([cancerStudyNames[i], 0, 0, 0, 0, 0]);
                  } else {
                      histogramData2.addRow([cancerStudyNames[i], 0]);
                      histogramData4.addRow([cancerStudyNames[i], 0, 0]);
                  }
              }
  
          }
  