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-axis-from-non-zero-value-tp22727634p22727634.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to