Try...

dataProvider ="{xmlData.entry[0].One}"

or

dataProvider ="{xmlData.*.One}"

On 5 Dec 2007, at 15:52, y.mauron wrote:

Dear all,

I have a problem which certainly be very easy. I have a xml varialbe
like the following :

var test:String = "<root><entry
id=123><One><y>813</y><x>270</x></One></entry><entry
id=123><One><y>890</y><x>280</x></One></entry></root>";
var xmlData = new XML(test);

and would like to use this as dataprovider for my chart. Each <entry>
represent a series. (Rem: the number of <entry> entry is not known at
the beninig). I then code that :
<mx:ColumnChart id="columnChart" height="100%" width="100%"
paddingLeft="0" paddingRight="0"
showDataTips="true" columnWidthRatio="1"
maxColumnWidth="1"
dataProvider ="{xmlData.entry.One}">

But cannot see the two lines... and even not one...




Reply via email to