I was able to get the alternating row color but now I also get an extra line right in the middle of the last bar item. It falls behind the bar but right down the middle of that area. Has anyone else seen this happen? I also tried using the ActionScript methond of adding the color and got the same result.
Here's how I'm doing the color -- <mx:Array id="bge"> <mx:GridLines direction="horizontal"> <mx:horizontalStroke> <mx:Stroke weight="1" color="#C2D1E1"/> </mx:horizontalStroke> <mx:horizontalFill> <mx:SolidColor color="#EEF3F7" alpha="1"/> </mx:horizontalFill> </mx:GridLines> </mx:Array> <!-- --> <mx:BarChart id="barchart1" width="100%" height="100%" dataProvider="{chartData}" showDataTips="true" dataTipFunction="formatDataTip" backgroundElements="{bge}" itemClick="getInfo(event.hitData.item)"> ... </mx:BarChart> --- In flexcoders@yahoogroups.com, "Ely Greenfield" <[EMAIL PROTECTED]> wrote: > > > > Mark -- the gridlines class, which defines the background gridlines for > the chart, supports alternating row colors. Look at the documentation > for GridLines for more information. > > off the top of my head, it would look something like: > > <BarChart> > <backgroundElements> > <GridLines horizontalFill="#FF0000" > horizontalAlternateFill="#00FF00" horizontalChangeCount="1" /> > </backgorundElements> > </BarChart> > > > Ely. > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Mark > Sent: Thursday, February 22, 2007 8:12 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] alternating row color in bar chart > > > > I'm using a bar chart that can get pretty long so I'd like to > alternate the background row color. Is this something I can do, and > if so, is there an example or maybe point me in the right direction on > how to go about doing it? >