Expand my Community achievements bar.

dataFunction with deeply nested XML for charts

Avatar

Former Community Member
I have an xmlListCollection with deeply nested tags ( and a
confusing XML design not of my making) and I want to chart some
sections of it. When I use a dataFunction series, I expect to get
repeating chart elements, like bars. What I get is zip in the
chart, and trace reveals that I get two kinds of data:



xml data visible here
xml data

code visible here
code



using this notation: item.services..servers.array.name

I get

"<name>se1</name>

<name>se2</name>

<name>se3</name>

<name>se4</name>"



using this notation item.services..servers.array.name.text()
gets

"se1se2se3se4"




What I expect:

I am passing an array to the series which will spread it out
dynamically. Obviously I am feeding it data in the wrong form.




I have tried:

1) dropping the ".." ( dot dot ) notation in favor of all the
intervening elements explicit.

2) docs-


http://livedocs.adobe.com/flex/3/html/help.html?content=charts_intro_8.html

advanced data visualization developer guide pdf

3) using valueOf() which returns the elements and data



Oddly this all works with less complex XML, just like the
examples its drawn from.




Any idea what I am doing wrong?



thanks!
1 Reply

Avatar

Former Community Member
If this is a really stupid and obvious question, I apologize
in advance, call it a senior moment, make fun, whatever. I really
really did RTFM.




so I'll run after any idea like a dog after a
frisbee.