Hi Rohit,
Add this inside ColumnChart...
<mx:verticalAxis>
<mx:LinearAxis minimum="0" maximum="500"/>
</mx:verticalAxis>
Regards,
Venkat
On Fri, Nov 7, 2008 at 8:12 PM, rohit <[EMAIL PROTECTED]> wrote:
>
> will u please do in this
>
> <?xml version="1.0"?>
> <!-- Simple example to demonstrate the ColumnChart and BarChart
> controls. -->
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
> creationComplete="init()">
> <mx:Script>
> <![CDATA[
> import mx.collections.ArrayCollection;
>
>
> private function init():void
> {
> // colSeries.yField = "200";
> }
> [Bindable]
> private var medalsAC:ArrayCollection = new ArrayCollection( [
> { Country: "USA", Gold: 35 ,a:100 },
> { Country: "China1", Gold: 30 ,a:100},
> { Country: "China2", Gold: 12 ,a:100 },
> { Country: "China3", Gold: 12 ,a:100},
> { Country: "China4", Gold: 32 ,a:100},
> { Country: "China5", Gold: 32 ,a:100 },
> { Country: "China6", Gold: 9 ,a:100},
> { Country: "China7", Gold: 18 ,a:100 },
> { Country: "China8", Gold: 32 ,a:100},
> { Country: "China9", Gold: 32 ,a:100},
> { Country: "China10", Gold: 32 ,a:100},
> { Country: "China11", Gold: 22 ,a:100},
> { Country: "China12", Gold: 92 ,a:100},
> { Country: "China13", Gold: 82 ,a:100},
> { Country: "China14", Gold: 12,a:100},
> { Country: "Russia", Gold: 27 ,a:100} ]);
> ]]>
> </mx:Script>
>
> <!-- Define custom colors for use as fills. -->
> <mx:SolidColor id="sc1" color="yellow" alpha=".8"/>
> <mx:SolidColor id="sc2" color="0xCCCCCC" alpha=".6"/>
> <mx:SolidColor id="sc3" color="0xFFCC66" alpha=".6"/>
>
> <!-- Define custom Strokes for the columns. -->
> <mx:Stroke id="s1" color="yellow" weight="2"/>
> <mx:Stroke id="s2" color="0xCCCCCC" weight="2"/>
> <mx:Stroke id="s3" color="0xFFCC66" weight="2"/>
>
> <mx:Panel title="ColumnChart and BarChart Controls Example"
> height="100%" width="100%" layout="horizontal">
> <mx:ColumnChart id="column"
> height="100%"
> width="565"
> paddingLeft="5"
> paddingRight="5"
> showDataTips="true"
> dataProvider="{medalsAC}"
> >
> <mx:horizontalAxis>
> <mx:CategoryAxis categoryField="Country"/>
> </mx:horizontalAxis>
>
>
> <mx:series>
> <mx:ColumnSeries id="colSeries"
> xField="Country"
> yField="Gold"
> displayName="Gold"
> fill="{sc1}"
> stroke="{s1}"/>
> </mx:series>
>
> </mx:ColumnChart>
>
> <mx:Legend dataProvider="{column}"/>
>
> </mx:Panel>
> </mx:Application>
>
> On Nov 7, 5:43 pm, "Vinod M. Jacob" <[EMAIL PROTECTED]> wrote:
> > You can write actionScript code and set the columnseries yField value to
> > 100.
> >
> >
> >
> > On Fri, Nov 7, 2008 at 5:46 PM, rohit <[EMAIL PROTECTED]> wrote:
> >
> > > is it possible in flex column chart ------to give y ayis static
> >
> > > means if i put it into 100 .it shows me data from 0 to 100 on y-axis
> >
> > > Please give me reply soon i keen need of it- 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
-~----------~----~----~----~------~----~------~--~---