This content has been marked as final. Show 4 replies
Rather embarrassingly i found the answer to one of my problems within 5 mins of asking this ... one can tell the ColumnSeries to use the LinearGradient with the setStyle funtion ...
However im still stuck on how to get my showDataEffect working in actionscript.
use setStyle for the effect as well. Assuming an effect you defined named "myInterpolate":
colSeries.setStyle ("showDataEffect", myInterpolate);
Cheers Brian, that worked.
Don't know why i didn't think of that. Was trying to attach an event listener to 'showData', and create my own seriesInterpolate, but to no avail.
I tried the same kinda thing but with no success. I have a pie chart where I want to specify a gradient fill for each individual slice (kind of like the Flex Dashboard example), except, I want to do it in Actionscript.
var pieChart:PieChart = new PieChart;
var series:PieSeries = new PieSeries;
/*A bunch of other stuff goes here styling/binding/etc*/
var grad1:GradientEntry = new GradientEntry(0xC6D5DD,0.3);
var grad2:GradientEntry = new GradientEntry(0x336699,0.3);
var grad3:GradientEntry = new GradientEntry(0x24496D,0.3);
var grad4:GradientEntry = new GradientEntry(0x000000,0.3);
radialGradient.entries = [grad1,grad2,grad3,grad4];
Can anyone see anything blatantly wrong with this? Thanks!!