I think so
> I tried
> changing the zeros and they didn't affect the graph. But removing them
> causes trouble.
>
You need to understand what that tuple is: is a list of points where
the first element is the X coordinate and the second value is the Y
coordinate. That's the way you build a table of values from which you
draw the chart. Pie charts are pretty special since they don't use the
X coordinate at all since they are unidimensional and not
bidimensional. As the pycha code that deal with datasets is generic
for all kinds of charts the values have to be points too for piecharts
for consistency reasons.
> Also I'd like to get the graph label to show up on two lines. Instead
> of "Food (12.5%)" more like,
>
> Food
> (12.5%)
>
> Is there a way to do this? If not then I thought I'd perhaps write a
> patch for an option that supports that. My labels will be longer than
> this and with the percent it gets very long (causing formatting
> issues).
No, there is no way to do this. I suggest you to write a subclass of
the pycha.pie.PieChart class and redefine the _renderAxis method where
you have full control on how to draw the labels. That's the saner way
to acomplish what you want. Adding an option to pycha to draw the
labels will not be practical since everybody has his own preferences
about this.
Best regards,
Lorenzo