--- In [email protected], john fisher <[EMAIL PROTECTED]> wrote: > > > For total spanking newbies reading this: > > See Amy's code and also this simplified version > http://livedocs.adobe.com/flex/3/html/help.html? content=charts_intro_7.html > > stuff I didn't get that tripped me up- > > 1) You don't have to use the <mx:ColumnChart> at all - you can do > everything in AS instead. This is very confusing, because the call in AS > that actually creates the chart is > "addChild" as in > " // Attach chart and legend to the display list. > p1.addChild(myChart); > p1.addChild(legend1);" > My initial reaction is "yuck" but knowing nothing, its worth will likely > be revealed to me later. > > 2) use of the "child" method on XML objects, I need to practice this and > figure it out. > > 3) I was right, the bar charts just want an array of arrays for data, > but I lacked the tools to create that from the XML. > > further comment welcome.
I was actually surprised to find that creating charts in AS instead of MXML was actually _less_ confusing and quicker than MXML. Here is a reference you may find helpful: http://dispatchevent.org/roger/as3-e4x-rundown/ I refer to it over and over. There are also some good charting links in the "Thoughts on charting" post on my blog. HTH; Amy

