[flexcoders] XML data bound to a chart- this should work!

2007-05-17 Thread barry.beattie

I just can't see why I can't get the chart data to display. Looking at
examples, the XML data can be directly and easily bound to the chart.

but it still won't display. Do I need to refresh it (somehow?) because
the data won't return until onResultReturn() runs? no errors, just no
data showing.

any suggestions?
thanx
b


mx:ColumnChart x=388 y=0 id=columnchart1 height=323
width=390 dataProvider={questionaire.question}
mx:series
mx:ColumnSeries yField=rating /
/mx:series
mx:horizontalAxis
mx:CategoryAxis categoryField=question /
/mx:horizontalAxis
/mx:ColumnChart

the format of the XML is simple

questionaire
  question id=aaa rating=2 /
  question id=bbb rating=4 /
  question id=ccc rating=6 /
  question id=ddd rating=8 /
  question id=eee rating=10 /
/questionaire

it's being retrieved with HTTPService (e4x) and can be accessed and
edited in textboxes, etc, without issue.

public function onResultReturn(event:ResultEvent):void
{
questionaire = new XML(event.result);
lastIndex = questionaire.children().length()-1;
first(); // move to the first question to start
}





Re: [flexcoders] XML data bound to a chart- this should work!

2007-05-17 Thread Tom Chiverton
On Thursday 17 May 2007, barry.beattie wrote:
 any suggestions?

Is the variable [Bindable] ?

-- 
Tom Chiverton
Helping to revolutionarily envisioneer interdependent models
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/