【发布时间】:2010-04-17 15:22:34
【问题描述】:
<Projectlist>
<Project>
<ProjectName>Alcoswitch - ToggleSwitches
</ProjectName>
<ProjectStatusname>Planning</ProjectStatusname>
</Project>
<Project>
<ProjectName>
Transverse Wedge</ProjectName>
<ProjectStatusname>Canceled</ProjectStatusname>
</Project>
<Project>
<ProjectName>High Speed Pluggable I/O</ProjectName>
<ProjectStatusname>In-Progress</ProjectStatusname>
</Project>
<Project>
<ProjectName>"High Speed Pluggable I/O - Product Breakouts:</ProjectName>
<ProjectStatusname>In-Progress</ProjectStatusname>
</Project>
<Project>
<ProjectName>Circular Plastic Connector (CPC)</ProjectName>
<ProjectStatusname>In-Progress</ProjectStatusname>
</Project>
</Projectlist>
这是我收到的 XML 数据,如何在条形图中显示。
<mx:BarChart id="barChart"
showDataTips="true" dataProvider="{ProjectStateInfo}"
width="100%"
height="100%">
<mx:horizontalAxis>
<mx:CategoryAxis categoryField="ProjectStatusname"/>
</mx:horizontalAxis>
<mx:verticalAxis>
<mx:CategoryAxis categoryField="ProjectName"/>
</mx:verticalAxis>
<mx:series>
<mx:BarSeries id="barSeries" visible="true"
yField="ProjectName"
xField="ProjectStatusname"
displayName="ProjectStatusname"
/>
</mx:series>
</mx:BarChart>
我的 X 轴显示多个 In-Progress 值,但我只需要一个。是否可以使用 BarChart 来表示这种关系。任何其他 Flex 图表都是可取的。
【问题讨论】:
标签: xml apache-flex