in reply to pie chart generation

I recommend GD::Graph.