flex pie chart(图饼)图例的颜色没有显示出来,求高手指点。
前台控件设置如下:<mx:PieChartid="pieChart"dataProvider="{legList}"showDataTips="true"itemClic...
前台控件设置 如下:
<mx:PieChart id="pieChart"
dataProvider="{legList}"
showDataTips="true"
itemClick="pieChart_itemClick(event);"
height="100%"
width="100%">
<mx:series>
<mx:PieSeries id="pieSeries"
field="data"
nameField="label">
<mx:showDataEffect>
<mx:SeriesInterpolate duration="1500"
easingFunction="{mx.effects.easing.Elastic.easeOut}" />
</mx:showDataEffect>
<mx:filters>
<mx:DropShadowFilter />
</mx:filters>
</mx:PieSeries>
</mx:series>
</mx:PieChart>
<mx:ControlBar width="100%">
<mx:Legend dataProvider="{pieChart}"
direction="horizontal"
horizontalGap="100"
width="100%" />
</mx:ControlBar> 展开
<mx:PieChart id="pieChart"
dataProvider="{legList}"
showDataTips="true"
itemClick="pieChart_itemClick(event);"
height="100%"
width="100%">
<mx:series>
<mx:PieSeries id="pieSeries"
field="data"
nameField="label">
<mx:showDataEffect>
<mx:SeriesInterpolate duration="1500"
easingFunction="{mx.effects.easing.Elastic.easeOut}" />
</mx:showDataEffect>
<mx:filters>
<mx:DropShadowFilter />
</mx:filters>
</mx:PieSeries>
</mx:series>
</mx:PieChart>
<mx:ControlBar width="100%">
<mx:Legend dataProvider="{pieChart}"
direction="horizontal"
horizontalGap="100"
width="100%" />
</mx:ControlBar> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询