Flex BarChart and XML
- by theband
<mx:BarChart id="barChart"
showDataTips="true"
dataProvider="{testInfo}"
width="100%"
height="100%">
<mx:verticalAxis>
<mx:CategoryAxis categoryField="ProjectName"/>
</mx:verticalAxis>
<mx:series>
<mx:BarSeries id="barSeries"
yField="ProjectName"
xField="State"
displayName="State"
/>
</mx:series>
</mx:BarChart>
I get the Project Names in the y -Axis, but nothing is displayed in the Chart. Could not construe on what's going as wrong.
private function xmlHandler(evt:ResultEvent):void{
testInfo = evt.result.Project;
}