it seems to be a small problem that is complicated to solve so it's in low priority now. post the code if u manage to implement it. thanks, vigen
--- In flexcoders@yahoogroups.com, "phipzkillah" <[EMAIL PROTECTED]> wrote: > > Thanks Vigen! > > Were you able to fix the tooltip so it's border matches the column > gradient color? > > -phil > > --- In flexcoders@yahoogroups.com, "vigen2000" <vigen2000@> wrote: > > > > try this out: > > > > var g:Graphics = graphics; > > g.clear(); > > var fill:LinearGradient = _linearGrad; //some gradient > > fill.angle = angle; //put it in the right angle > > g.moveTo(0,0); > > fill.begin(g,new Rectangle(0,0,width,height)); > > g.lineTo(width,0); > > g.lineTo(width,height); > > g.lineTo(0,height); > > g.lineTo(0,0); > > fill.end(g); > > > > --- In flexcoders@yahoogroups.com, "phipzkillah" <pkrasko@> wrote: > > > > > > Vigen, > > > > > > Do you mind posting your source for the gradient item renderer? I > > > have tried to implement this, but was unsuccessful. > > > > > > Or if you can see where I went wrong here... > > > > > > private static const fills:Array = getColors(); > > > > > > > > > private static function getColors():Array{ > > > var gradients:Array = new Array(); > > > //Green - Registered > > > > > > var gradient:LinearGradient = new LinearGradient(); > > > var g1:GradientEntry = new GradientEntry(0x048f32,0); > > > var g2:GradientEntry = new GradientEntry(0x8ed1a5,.2); > > > var g3:GradientEntry = new GradientEntry(0x048f32,.4); > > > var g4:GradientEntry = new GradientEntry(0x59bd7d,.8); > > > var g5:GradientEntry = new GradientEntry(0x04852e,1); > > > > > > gradient.entries = [g1,g2,g3,g4,g5]; > > > > > > gradients.splice(-1,0,gradient); > > > > > > > > > //Orange - Unregistered > > > gradient = new LinearGradient(); > > > > > > g1 = new GradientEntry(0xff8500,0); > > > g2 = new GradientEntry(0xfaaa5f,.2); > > > g3 = new GradientEntry(0xff8500,.4); > > > g4 = new GradientEntry(0xfeddbe,.8); > > > g5 = new GradientEntry(0xff7b00,1); > > > > > > gradient.entries = [g1,g2,g3,g4,g5]; > > > > > > gradients.splice(-1,0,gradient); > > > > > > //Red - Rejected > > > gradient = new LinearGradient(); > > > > > > g1 = new GradientEntry(0xa72323,0); > > > g2 = new GradientEntry(0xb35f5f,.2); > > > g3 = new GradientEntry(0xa72323,.4); > > > g4 = new GradientEntry(0xd86456,.8); > > > g5 = new GradientEntry(0xa92a2a,1); > > > > > > gradient.entries = [g1,g2,g3,g4,g5]; > > > > > > gradients.splice(-1,0,gradient); > > > > > > //Blue - Unknown > > > gradient = new LinearGradient(); > > > > > > g1 = new GradientEntry(0x1414a1,0); > > > g2 = new GradientEntry(0x503a88,.2); > > > g3 = new GradientEntry(0x1414a1,.4); > > > g4 = new GradientEntry(0x928ec,.8); > > > g5 = new GradientEntry(0x000099,1); > > > > > > gradient.entries = [g1,g2,g3,g4,g5]; > > > > > > gradients.splice(-1,0,gradient); > > > > > > return gradients; > > > } > > > > > > override protected function updateDisplayList(unscaledWidth:Number, > > > > > > unscaledHeight:Number):void > > > { > > > super.updateDisplayList(unscaledWidth, unscaledHeight); > > > > > > var fill:Number = (_chartItem == null)? > > > 0:fills[_chartItem.index % > > > fills.length]; > > > > > > > > > var rc:Rectangle = new Rectangle(0, 0, width , height ); > > > > > > var g:Graphics = graphics; > > > g.clear(); > > > g.moveTo(rc.left,rc.top); > > > g.beginFill(fill); > > > g.lineTo(rc.right,rc.top); > > > g.lineTo(rc.right,rc.bottom); > > > g.lineTo(rc.left,rc.bottom); > > > g.lineTo(rc.left,rc.top); > > > g.endFill(); > > > } > > > > > > --- In flexcoders@yahoogroups.com, "vigen2000" <vigen2000@> wrote: > > > > > > > > Hi, > > > > > > > > i have a weired thing going on. i implemented a gradient > itemrenderer > > > > for the series to color the bars according to the data. all > works well > > > > until i resize the chart with AS. the bars are covering each > other in > > > > an ugly way. only recreating the object solve the problem (scrolling > > > > out of the chart and scrolling back) > > > > > > > > any ideas? > > > > > > > > vigen > > > > > > > > > >