anchor.diff:  var clinicalDataMap = <%=jsonClinicalData%>;
   
   var mapCaseColor = {};
  -var mapCaseIndices = {};
   var mapCaseLabels = {};
   
   $(document).ready(function(){
  
positive.code:                 || caseTypeLower==="local progression") return "orange";
          return "black";
      }
      
      function setCaseIndicesAndLabels() {
          var mapColorCases = {};
          for (var c in mapCaseColor) {
              var color = mapCaseColor[c];
              if (!(color in mapColorCases)) mapColorCases[color] = [];
              mapColorCases[color].push(c);
          }
          
          var colors = ["black","orange","red"];
          for (var ix=0; ix<3; ix++) {
              var color = colors[ix];
              var cases = mapColorCases[color];
              if (!cases) continue;
              var n = cases.length;
              if (n===1) {
                  mapCaseLabels[cases[0]]='';
                  mapCaseIndices[cases[0]] = ix+1;
              } else {
                  for (var i=0; i<n; i++){
                      var _case = cases[i];
                      mapCaseLabels[_case] = i+1;
                      mapCaseIndices[_case] = ix+1;
                  };
              }
          }
      }
  }
  
  function plotCaseLabel(svgEl,onlyIfEmpty) {
  
negative.code:     }
      
      if (n>1) {
          plotCaseLabel('.case-label-header');
          $("#clinical_table").append("<tr><td><a href=\"study.do?cancer_study_id="+
                  cancerStudyId+"\">"+cancerStudyName+"</a></td><td></td></tr>");
  