我在Flash Builder 4.6中获取饼图时遇到问题光环主题| mx:正确更新的应用程序。我在两个州之间工作。
国
设置
问题
我注意到/已经过测试
以下是与饼图相关的一些代码。 提前谢谢!
[chartHandler是通过creationComplete]
[Bindable] public var chartDataGlobal:ArrayCollection = new ArrayCollection([]);
protected function chartHandler():void
{
// TODO Auto-generated method stub
var chartData:ArrayCollection = new ArrayCollection( [
{ Category: "Clinical", Total: clinicalTotal},
{ Category: "Rehab", Total: rehabTotal},
{ Category: "Healthcare", Total: healthcareTotal },
{ Category: "Textiles", Total: textilesTotal },
{ Category: "Foodservice", Total: foodServiceTotal },
{ Category: "Environmental", Total: environmentalTotal }]);
chartDataGlobal=chartData;
}
<mx:PieChart id="chart" includeIn="summary" x="-8" y="22" width="357" height="378" paddingLeft="5" paddingRight="5" showDataTips="true" x.start="39" y.start="42"
height.summary="386" dataProvider="{chartDataGlobal}">
<mx:series>
<mx:PieSeries id="PieSeries" nameField="Category" field="Total">
<mx:filters>
<mx:DropShadowFilter />
</mx:filters>
</mx:PieSeries>
</mx:series>
</mx:PieChart>
答案 0 :(得分:0)
我将饼图嵌套在sGroup中,然后是HBox。删除图表并将其放在舞台上后,它开始拉入更新的总计。我不确定为什么这很重要,但它现在正在运作。