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");