1 Reply Latest reply on Mar 6, 2007 6:25 PM by ntsiii

    Dynamically filling PieSeries - problem

    Bacherak
      I have a requirement where the colors used in a piechart are tied to the datatype displayed. That is, there are specific colors that need to be used for specific data types. I use a HTTPService call to get the XML necessary for the data to be displayed. The XML also has a color value that I want to use to color the wedges. So what I did was in the PieSeries fills property I call a script that takes the XML and creates an array of SolidColor objects. The problem I am running into is, since the pie chart is rendered before the data is retrieved from the HTTPService call, the pie chart appears white with no colors.
      Is there a way to wait until the data has been retrieved before the pie chart is rendered. I know that HTTPService callas are asynchronous.
      Thank you.
      Ram