Hi,

I'm trying to create a chart (cartesian) with an areaset, a columnset 
and some lineseries.
Here is the relative piece of  mxml code (it works fine)

<mx:CartesianChart id="c1" showDataTips="true" width="807">
<mx:horizontalAxis>
<mx:DateTimeAxis  displayLocalTime="true" autoAdjust="true"   
alignLabelsToUnits="true" labelUnits="days"  
labelFunction="shortDate"  dataUnits="days" 
parseFunction="myParseFunction"/>
</mx:horizontalAxis>

<mx:series>
    <mx:Array>
        <mx:AreaSet  type="100%">
        <mx:series>
                <mx:Array>
                        <mx:AreaSeries width="50" 
dataProvider="{xxx}" displayName="{yyy}"  yField="valeur" 
xField="date_application"  />
                </mx:Array>
        </mx:series>
        </mx:AreaSet>
        <mx:ColumnSet type="stacked">
                <mx:series>
                <mx:Array>
                        <mx:ColumnSeries width="50" 
dataProvider="{xxx}" displayName="{yyyy}"  yField="valeur" 
xField="date_application"  />
                                <mx:ColumnSeries width="50" 
dataProvider="{xxx}" displayName="{yyy}"  yField="valeur" 
xField="date_application"  />
                                
                </mx:Array>
                </mx:series>
        </mx:ColumnSet>
        <mx:LineSeries width="50" dataProvider="{xxx}" 
displayName="{yyy}"  yField="valeur" xField="date_application"  />
</mx:Array>
</mx:series>
</mx:CartesianChart>


when I'm trying to create the same thing in AS, my chart is rendering 
the areaseries and columnseries one over the other which means that 
the columnseries are not rendered as one stacked group but as 2 
stacked group
I have not find the solution and I'm blocked. Can someone help me ?? 
It's very urgent.

piece of code
        areaSet.series=tmpArea;
        columnSet.series=tmpColumn;
        tmpAll.push(areaSet);
        tmpAll.push(columnSet);
        for (i=0;i<tmpLine.length;i++){
                tmpAll.push(tmpLine[i.toString()]);     
        }
        this.series=tmpAll;


Thank you 

Oliver







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to