code: public static String rocChartToHtml(ROCMultiClass rocMultiClass, List<String> classNames) {
  
          int n = rocMultiClass.getNumClasses();
  
          List<Component> components = new ArrayList<>(n);
          for (int i = 0; i < n; i++) {
              RocCurve roc = rocMultiClass.getRocCurve(i);
              String headerText = "Class " + i;
              if (classNames != null && classNames.size() > i) {
                  headerText += " (" + classNames.get(i) + ")";
              }
              headerText += " vs. All";;
  
              Component headerDivPad = new ComponentDiv(HEADER_DIV_PAD_STYLE);
              components.add(headerDivPad);
  
              Component headerDivLeft = new ComponentDiv(HEADER_DIV_TEXT_PAD_STYLE);
              Component headerDiv = new ComponentDiv(HEADER_DIV_STYLE, new ComponentText(headerText, HEADER_TEXT_STYLE));
              Component c = getRocFromPoints(ROC_TITLE, roc, rocMultiClass.getCountActualPositive(i),
                              rocMultiClass.getCountActualNegative(i), rocMultiClass.calculateAUC(i),
                              rocMultiClass.calculateAUCPR(i));
              Component c2 = getPRCharts(PR_TITLE, PR_THRESHOLD_TITLE, rocMultiClass.getPrecisionRecallCurve(i));
              components.add(headerDivLeft);
              components.add(headerDiv);
              components.add(c);
              components.add(c2);
          }
  
          return StaticPageUtil.renderHTML(components);
      }
docs: Given a {@link ROCMultiClass} instance and (optionally) names for each class, render the ROC chart to a stand-alone
  HTML file (returned as a String)
  @param rocMultiClass  ROC to render
  @param classNames     Names of the classes. May be null