hi guys, i have a problem about changing the pie chart color at runtime.
for example, i have this chart :

<mx:PieChart id="pcRegion" width="100%" height="100%" >
<mx:series>
<mx:Array>
<mx:PieSeries field="revenue" nameField="name" labelPosition="callout"
labelFunction="getSliceLabel" showDataEffect="{interpolate}">
<mx:fills>
<mx:Array>
<mx:RadialGradient>
<mx:entries>
<mx:Array> 
<mx:GradientEntry id="pie1" color="#A1AECF" ratio="0"/>
<mx:GradientEntry id="pie11" color="#47447A" ratio="1"/>
</mx:Array>
</mx:entries>
</mx:RadialGradient>
</mx:series>
</mx:PieChart>

and need to change the gradient entry with the id pie1 anda pie11,i
did it like this:
pie1.color=0xFF0000;
but its seems doesn't work.
can someone help me?
thanks,
regards

Reply via email to