Posted in Flex on March 31, 2008 | 6 Comments »
Use this code to generate random colors.You can use the ColorTransform for this inside a loop.
private var redBias:Number = 0xFF;
private var greenBias:Number = 0xFF;
private var blueBias:Number = 0xFF;
var ct:ColorTransform = new ColorTransform(1,1,1,1,Math.random()*redBias,Math.random()*greenBias,Math.random()*blueBias);
var color:uint = ct.color;
Read Full Post »
Posted in Flex on March 25, 2008 | 3 Comments »
You can remove the default drop shadow from a LineChart chart in Flex by setting the seriesFilters property, as shown in the code below
<mx:LineChart id=”lineChart” showDataTips=”true” dataProvider=”{incomeAC}” width=”100%” height=”100%” seriesFilters=”[]“>
<!? . . . ?>
</mx:LineChart>
OR
<mx:LineChart id=”lineChart” showDataTips=”true” dataProvider=”{incomeAC}” width=”100%” height=”100%“>
Read Full Post »