用的组件:
fillFunction的代码:
package xxxxxx.xxx.x.xx.x
var curItem:ColumnSeriesItem = ColumnSeriesItem(item);
if(curItem.xValue =='浙江')
return(new SolidColor(0xE8473E, .75));
else
return(new SolidColor(0x4CB848, .75));
}
{
import mx.charts.ChartItem;
import mx.charts.series.items.ColumnSeriesItem;
import mx.graphics.IFill;
import mx.graphics.SolidColor;
public function ColumnChartFillFunction(item:ChartItem, index:Number):IFill {
}