Flex BarChart and XML
Posted
by theband
on Stack Overflow
See other posts from Stack Overflow
or by theband
Published on 2010-04-12T02:27:12Z
Indexed on
2010/04/12
2:33 UTC
Read the original article
Hit count: 580
flex
<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;
}
© Stack Overflow or respective owner