I believe you have to define the axis in your mxml. Take a look at this sample http://blog.flexexamples.com/2007/11/12/controlling-whether-a-linechart-should-set-its-base-value-at-zero/ I know its a line chart but the same concept should apply.
Also see http://blog.flexexamples.com/2007/11/12/controlling-whether-a-linechart-should-set-its-base-value-at-zero/ Also please note that I've read somewhere that setting the values for maximum and minimum actually improve the performance. On a final note if there are a large disparity between data points then the LogAxis may be more appropiate. It depends though on what the client wants. Regards, Wesley Acheson On Thu, Mar 26, 2009 at 6:59 PM, GeeTee <[email protected]> wrote: > > Hi everyone, > > I was making a stacked column chart (in which a user can see the data > between a 'Start Date' and an 'End Date' using a date field) in which the > bottom part would show a cumulative data till that day while the top part > would show the data for that day. No matter what the start date is, there > will always be some cumulative data even for the first day, which is the > start date (as the service for which the data is being displayed has been > there for years). Since that number is very huge compared to 1 day's data, > is there any way I can set the y-axis to start at a non-zero number (which > would be cumulative data till the start date)? > > A test sample that I was working on, using basic column chart without > stacking is pasted below. I would like to start the y-axis from 50000 as > val > will always be greater than 50000 (hypothetical situation) > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute"> > <mx:Script> > <![CDATA[ > import mx.collections.ArrayCollection; > [Bindable] public static var > imageTypeQuarterly:ArrayCollection = new > ArrayCollection( [ > { XVal: "Q1", val: 52346}, > { XVal: "Q2", val: 63476}, > { XVal: "Q3", val: 68980} ]); > ]]> > </mx:Script> > > <mx:ColumnChart x="169" y="42" id="columnchart1" > dataProvider="{imageTypeQuarterly}"> > <mx:series> > <mx:ColumnSeries displayName="Series 1" yField="val" > /> > </mx:series> > </mx:ColumnChart> > <mx:Legend dataProvider="{columnchart1}"/> > > </mx:Application> > > Thanks in advance for all the help. > Gaurav > -- > View this message in context: > http://www.nabble.com/Start-Column-Chart-Y-axiz-from-non-zero-value-tp22727634p22727634.html > Sent from the FlexCoders mailing list archive at Nabble.com. > > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > >

