Thats a mistake in the previous post

Next time it would be good if you put the full code whatever you have
tried, i felt really lazy to write code end-to-end.

Gud Luck
RM3sh,


On Oct 16, 11:09 am, Rams <[EMAIL PROTECTED]> wrote:
> Next time it would be good if you the full code whatever you have
> tried, i felt really lazy to write code end-to-end.
>
> I hope it helps you !
>
> ***************************************************************************­******************
> <?xml version="1.0"?>
> <!-- charts/BasicLine.mxml -->
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; width="100%"
> height="100%">
>   <mx:Script><![CDATA[
>      import mx.collections.ArrayCollection;
>      [Bindable]
>      public var expenses:ArrayCollection = new ArrayCollection([
>         {Month:"Jan", Profit:2000, Expenses:1500, Amount:450},
>         {Month:"Feb", Profit:1000, Expenses:200, Amount:600},
>         {Month:"Mar", Profit:1500, Expenses:500, Amount:300}
>      ]);
>   ]]></mx:Script>
>   <mx:Panel title="Line Chart" width="100%" height="100%">
>      <mx:LineChart id="myChart" dataProvider="{expenses}"
> showDataTips="true" width="100%" height="100%">
>
>         <mx:backgroundElements>
>                         <mx:Grid height="100%" width="100%" verticalGap="0">
>                                 <mx:GridRow height="20%" width="100%">
>                                         <mx:GridItem height="100%" 
> width="100%">
>                                                 <mx:Canvas height="100%" 
> width="100%" alpha="0.7"
> backgroundColor="#1dae00" />
>                                         </mx:GridItem>
>                                 </mx:GridRow>
>                                 <mx:GridRow height="20%" width="100%">
>                                         <mx:GridItem height="100%" 
> width="100%">
>                                                 <mx:Canvas height="100%" 
> width="100%" alpha="0.7"
> backgroundColor="#ffa800" />
>                                         </mx:GridItem>
>                                 </mx:GridRow>
>                                 <mx:GridRow height="20%" width="100%">
>                                         <mx:GridItem height="100%" 
> width="100%">
>                                                 <mx:Canvas height="100%" 
> width="100%" alpha="0.7"
> backgroundColor="#ff0000" />
>                                         </mx:GridItem>
>                                 </mx:GridRow>
>                                 <mx:GridRow height="20%" width="100%">
>                                         <mx:GridItem height="100%" 
> width="100%">
>                                                 <mx:Canvas height="100%" 
> width="100%" alpha="0.7"
> backgroundColor="#d65f48" />
>                                         </mx:GridItem>
>                                 </mx:GridRow>
>                                 <mx:GridRow height="20%" width="100%">
>                                         <mx:GridItem height="100%" 
> width="100%">
>                                                 <mx:Canvas height="100%" 
> width="100%" alpha="0.7"
> backgroundColor="#cfc505" />
>                                         </mx:GridItem>
>                                 </mx:GridRow>
>                         </mx:Grid>
>                 </mx:backgroundElements>
>
>         <mx:horizontalAxis>
>            <mx:CategoryAxis dataProvider="{expenses}"
> categoryField="Month" />
>         </mx:horizontalAxis>
>         <mx:series>
>            <mx:LineSeries yField="Profit" displayName="Profit" />
>            <mx:LineSeries yField="Expenses" displayName="Expenses" />
>         </mx:series>
>      </mx:LineChart>
>      <mx:Legend dataProvider="{myChart}"/>
>   </mx:Panel>
> </mx:Application>
> ***************************************************************************­****************************************************
>
> Gud Luck,
> RM3sh
>
> On Oct 15, 7:37 pm, Axay <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi all,
>
> > I have to show horizontal color bands(all different and at least 5-6
> > horizontal bands) in the background of a line chart. I have searched
> > for it in the forum but didn't find anything on this. I found
> > something to set the alternate(2) back ground color like as followed
> > but not anything to set more than two colors. Please help on this.
>
> > <mx:backgroundElements>
> >                   <mx:GridLines  >
> >                       <mx:horizontalFill>
> >                           <mx:SolidColor color="haloBlue" alpha="0.2" /
>
> >                       </mx:horizontalFill>
> >                       <mx:horizontalAlternateFill>
> >                           <mx:SolidColor color="haloSilver"
> > alpha="0.2" />
> >                       </mx:horizontalAlternateFill>
> >                       <mx:verticalFill>
> >                           <mx:SolidColor color="haloBlue" alpha="0.2" /
>
> >                       </mx:verticalFill>
> >                       <mx:verticalAlternateFill>
> >                           <mx:SolidColor color="haloSilver"
> > alpha="0.2" />
> >                       </mx:verticalAlternateFill>
> >                   </mx:GridLines>
> >               </mx:backgroundElements>- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to