It seems there is no option to write your own functions to
return the field and nameField used in the charting component for
pie charts. I assume the same will be the case for any charts. I
find that this only works if the xml has no namespace assocaited
with it. If you try and define a namespace in your code and refer
to it in the attribute it doesn't seem to work.