I am trying to change the data of a column chart using acombo box. I am
using XML for data. What I am planing to do is.. the combo box will get
"Month"say January, feb etc and same will reflect on the X axis and
thedata related to only the selected month should be shown. Say
ifJanuary is selected, the x axis should show "January" and the
chartshould show only data related to January.My XML
DATA--------------------------
My MXML
Code------------------------------------------------- import
mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; var
arrBook:ArrayCollection = new ArrayCollection; function
ResHandler(event:ResultEvent) { arrBook =
event.result.YearlyData.Sample; cb.dataProvider = arrBook;
ColumnChart1.dataProvider = arrBook; } function changeChart() {
cb.selectedItem = CA.categoryField } ...