Perfect! That makes sense.
Thank you! Now I just have to figure out how to have the correct colors chosen dynamically. --- In [email protected], "Ralf Bokelberg" <[EMAIL PROTECTED]> wrote: > > Yep, it is the initializer for the array, which isn't correct. > Array({label: 'A', label: 'B', label: 'C', label: 'D'}); > This creates an array with one object having a label property. > > If you want to create an array of four objects with a label property, > you have to write it like that: > Array({label: 'A'}, {label: 'B'}, {label: 'C'}, {label: 'D'}); > > Ralf. > > On Wed, Aug 20, 2008 at 9:33 PM, Jayson <[EMAIL PROTECTED]> wrote: > > The Array that is being passed in to the class, is in the format of > > Object, not Array. The array is coming from an ArrayCollection, and I > > am using getItemAt to reference it. > > > > Below is my PieChart class. > > > > It will display the first object in the array as an item in the chart > > legend, but only the first object. Maybe my array isn't formatted right. > > > > So if this is my array that is being passed in: > > Array({label: 'A', label: 'B', label: 'C', label: 'D'}); >

