Shouldn’t you be able to replace the last two lines with colchartKPI.horizontalAxis = series?

 

I haven’t played with this much…

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of tony_lic
Sent: Monday, July 11, 2005 4:24 AM
To: [email protected]
Subject: [flexcoders] Column chart using webservice result

 

hi,
I have to build a column chart, where all the properties like
columnseries, categoryaxis & the y-axis  values all should come from
a web service.
I dont know where to provide the data provider property.

I tried some coding but it does not appear to work. let me provide
with you the code snippet.
please help me.

  for(var i=0;i < oRequest.AxisData.item[0].Set.item.length; i++)
                  {
                        tempValues.push
(oRequest.AxisData.item[0].Set.item[i].Caption.toString());
                        //Alert.show(oRequest.AxisData.item
[0].Set.item[i].Caption.toString());
                  }
                  colchartKPI.dataProvider =
oRequest.AxisData.item[0].Set;
                  var series:CategoryAxis = new CategoryAxis();
                  series.dataProvider = tempValues;
           
      colchartKPI.horizontalAxis.CategoryAxis.dataProvider =
tempValues;
                  colchartKPI.horizontalAxis.addItem(series);

with regards,
tony




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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




Reply via email to