Pie chart

A pie chart is a circular disk divided into sectors with the angles proportional to a set of frequencies. This is how a pie chart is created.
chart = piechart.new(percentages, labels);
where percentages is the vector of percentages (must add up to 1), and labels is a list of strings used to identify each percentage.

chart = piechart.new((0.6, 0.25, 0.15), ("aaa", "bbb", "ccc"));
chart.font = "Courier";
chart.save("pie.eps");
Image pie



oz 2009-12-22