2 Replies Latest reply on Apr 3, 2008 8:53 AM by out4colors

    format string returned by PieChart labelFunction

    out4colors
      I am new to Flex and found this web page with an example Pie chart:

      Pie chart example with code

      I want to format the output so that, using this link as an example, the country is in a larger, bold font. I sure appreciate any thoughts or tips.

      Thanks
        • 1. Re: format string returned by PieChart labelFunction
          ntsiii Level 3
          I don't do much with charts, but certainly you will not be able to do what you want with labelFunction. I think you could style the entire label, but not individual parts.

          Look to see if there is an itemRenderer property on PieSeries. If so then that would work.

          Tracy
          • 2. Re: format string returned by PieChart labelFunction
            out4colors Level 1
            Thanks for the reply. There is an ItemRenderer for PieSeries, but I do not understand how that would be extended/replaced to format the string returned from my custom labelFunction to changed font characteristics. I looked at htmlElement, but it does not appear to be a solution for this case.

            To be clear and referring to the link from my initial post, instead of displaying this default output from the label function:

            USA:
            Total Gold: 35
            37.23%

            I want:
            USA:
            Total Gold: 35
            37.23%

            Where the "USA:" string is bold. It seems very simple, but I am unclear on how to proceed. Any ideas?

            Thanks.