if (hasAppraisal && hasFailure)
writeChartHTML(LINE_CHART, TOTAL_COQ_CHART);
if (hasAFR)
writeChartHTML(LINE_CHART, AFR_CHART);
ListData mainAppraisalPhases = getMainAppraisalPhases();
if (mainAppraisalPhases.size() > 0) {
writeChartHTML(LINE_CHART, REVIEW_RATE_CHART);
for (int i = 0; i < mainAppraisalPhases.size(); i++) {
if (hasYield)
writeChartHTML(XY_CHART, REV_RATE_VS_PROC_YIELD,
fmtArg("phase", mainAppraisalPhases.get(i)));
writeChartHTML(XY_CHART, REV_RATE_VS_PHASE_YIELD,
fmtArg("phase", mainAppraisalPhases.get(i)));
}
if (hasYield && mainAppraisalPhases.size() > 1)
writeChartHTML(XY_CHART, COMBINED_REV_RATE_VS_PROC_YIELD);
}
out.write("</body></html>\n");
}