0 Replies Latest reply on Jun 10, 2007 4:16 PM by mxc4

    How to reference XML with namespace  in attributes-- chartng field fieldName?

    mxc4 Level 1
      Hi all.

      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.

      private var modelns:Namespace = new Namespace(" http://valueobject.model.jumpingbean.co.za");
      .....

      <mx:PieSeries labelPosition="callout" field="modelns::count" nameField="modelns::name"/>

      This doesn't seem to work. Am I missing something?