A pie chart is more involved than the bar chart, since trigonometry is involved. From the data side, though, there is little difference between a pie chart and a simple bar graph, so the COBOL program (piechart.cbl) is similar to the Bar Chart example. The XSLT stylesheet, piechart.xsl, is adapted from several examples found on the web.