Thunder -- 

        the offset, columnWidthRatio, and maxColumnWidth properties of
series are managed automatically in a ColumnChart.  This is how a
ColumnChart generates the clustering behavior in ColumnSeries.
Similarly, ColumnSeries inside a ColumnSet have these properties managed
by the outer ColumnSet.  
        the *Set series types (Column, Area, and Bar) are designed to
allow you to express the same grouping relationships provided in the
'convenience' charts (BarChart, ColumnChart, AreaChart) in complex
arrangements of your own design.  The intention is to use them in the
base CartesianChart type.

So to solve problem #1 and #2, you can simply switch to using a
CartesianChar.

Problem #3 is as designed.  ColumnCharts and ColumnSeries have a defined
amount of space assigned to them (columnWidthRatio) which they allocate
to their children.  If the children series are stacked, they get the
entire width. If they're clustered, the width is divided among them.  If
you want different behavior, you can calculate the size of a single
column when clustered and assign that value to the columnWidthRatio
property when you switch to stacked.

Make sense?

Ely.



-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thunderstumpgesatwork
Sent: Monday, March 20, 2006 9:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] More Stacked Chart bugs (2.0B1)

Hey there,

I've got some more. I have a feeling some of these may already be known
issues or just not yet implemented (since I'm venturing into
"undocumented" territory, but I thought I'd mention and demonstrate them
since I ran across them. 

These are to do with the "ColumnSet" class being used to display two
stacked sets of columns. (I actually got it working once I set the
undocumented "type" to "stacked")

Again, sample source below.

1) ColumnSet ignores 'columnWidthRatio' setting. I set this on both the
ColumnSet and every series in it. No dice.

2) ColumnSet ignores 'offset' setting. Same as above. Can't shift the
columns using 'offset'. Seems like the desired behavior is that the
individual series would offset themselves relative to the ColumnSet's
'offset'.

3) ColumnSet.type="overlaid" makes columns much skinnier than "stacked".
Try changing the 'type' of both ColumnSets to "overlaid"
the column width gets much narrower.

cheers,
Thunder
____________________________

<?xml version="1.0" encoding="iso-8859-1"?> <mx:Application
xmlns:mx="http://www.macromedia.com/2005/mxml";
width="100%" height="100%" >

<mx:XML id="oCatDP" format="e4x">
    <BudgetType>CHIT</BudgetType>
    <BudgetType>RESEARCH</BudgetType>
</mx:XML>
<mx:XML id="series1" format="e4x">
  <row>
    <MasterBroker>BEAR STEARNS SECURITIES CORP</MasterBroker>
    <BudgetType>CHIT</BudgetType>
   
<PageBEARSTEARNSSECURITIESCORPBudgetAmt>32340</PageBEARSTEARNSSECURITIES
CORPBudgetAmt>
   
<PageBEARSTEARNSSECURITIESCORPCommissionAmt>22340</PageBEARSTEARNSSECURI
TIESCORPCommissionAmt>
    <CommissionAmt>22340</CommissionAmt>
  </row>
  <row>
    <MasterBroker>BEAR STEARNS SECURITIES CORP</MasterBroker>
    <BudgetType>RESEARCH</BudgetType>
   
<PageBEARSTEARNSSECURITIESCORPBudgetAmt>42340</PageBEARSTEARNSSECURITIES
CORPBudgetAmt>
   
<PageBEARSTEARNSSECURITIESCORPCommissionAmt>32340</PageBEARSTEARNSSECURI
TIESCORPCommissionAmt>
    <CommissionAmt>32340</CommissionAmt>
  </row>
</mx:XML>
<mx:XML id="series2" format="e4x">
  <row>
    <MasterBroker>UBS WARBURG SECURITIES LTD</MasterBroker>
    <BudgetType>CHIT</BudgetType>
   
<PageUBSWARBURGSECURITIESLTDBudgetAmt>52826.656</PageUBSWARBURGSECURITIE
SLTDBudgetAmt>
   
<PageUBSWARBURGSECURITIESLTDCommissionAmt>42826.656</PageUBSWARBURGSECUR
ITIESLTDCommissionAmt>
  </row>
  <row>
    <MasterBroker>UBS WARBURG SECURITIES LTD</MasterBroker>
    <BudgetType>RESEARCH</BudgetType>
   
<PageUBSWARBURGSECURITIESLTDBudgetAmt>32826.656</PageUBSWARBURGSECURITIE
SLTDBudgetAmt>
   
<PageUBSWARBURGSECURITIESLTDCommissionAmt>22826.656</PageUBSWARBURGSECUR
ITIESLTDCommissionAmt>
  </row>
</mx:XML>
<mx:XML id="series3" format="e4x">
  <row>
    <MasterBroker>LEHMAN BROS INC.</MasterBroker>
    <BudgetType>CHIT</BudgetType>
   
<PageLEHMANBROSINC_x2E_BudgetAmt>46210</PageLEHMANBROSINC_x2E_BudgetAmt>
   
<PageLEHMANBROSINC_x2E_CommissionAmt>36210</PageLEHMANBROSINC_x2E_Commis
sionAmt>
  </row>
  <row>
    <MasterBroker>LEHMAN BROS INC.</MasterBroker>
    <BudgetType>RESEARCH</BudgetType>
   
<PageLEHMANBROSINC_x2E_BudgetAmt>82763.43</PageLEHMANBROSINC_x2E_BudgetA
mt>
   
<PageLEHMANBROSINC_x2E_CommissionAmt>92763.43</PageLEHMANBROSINC_x2E_Com
missionAmt>
  </row>
</mx:XML>

<mx:XMLListCollection id="oCatCol" source="{oCatDP.BudgetType}" />
<mx:XMLListCollection id="series1Col" source="{series1.row}" />
<mx:XMLListCollection id="series2Col" source="{series2.row}" />
<mx:XMLListCollection id="series3Col" source="{series3.row}" />

<mx:ColumnChart id="mainChart" showDataTips="true" type="clustered"
width="100%" height="100%">
        <mx:horizontalAxis>
            <mx:CategoryAxis dataProvider="{oCatCol}" />
        </mx:horizontalAxis>
        <mx:series>
            <mx:Array>
                        <mx:ColumnSet type="stacked"
columnWidthRatio=".3" alpha=".4">
                        <mx:series>
                            <mx:Array>
                        <mx:ColumnSeries columnWidthRatio=".3"
dataProvider="{series1Col}" xField="BudgetType"
yField="PageBEARSTEARNSSECURITIESCORPCommissionAmt" displayName="aapl"
/>
                        <mx:ColumnSeries columnWidthRatio=".3"
dataProvider="{series2Col}" xField="BudgetType"
yField="PageUBSWARBURGSECURITIESLTDCommissionAmt" displayName="aap2" />
                        <mx:ColumnSeries columnWidthRatio=".3"
dataProvider="{series3Col}" xField="BudgetType"
yField="PageLEHMANBROSINC_x2E_CommissionAmt" displayName="aap3" />
                            </mx:Array>
                        </mx:series>
                        </mx:ColumnSet>
                        <mx:ColumnSet type="stacked"
columnWidthRatio=".3" alpha=".4"
offset="-35">
                        <mx:series>
                            <mx:Array>
                        <mx:ColumnSeries columnWidthRatio=".3"
dataProvider="{series1Col}" xField="BudgetType"
yField="PageBEARSTEARNSSECURITIESCORPBudgetAmt" displayName="aap4" />
                        <mx:ColumnSeries columnWidthRatio=".3"
dataProvider="{series2Col}" xField="BudgetType"
yField="PageUBSWARBURGSECURITIESLTDBudgetAmt" displayName="aap5" />
                        <mx:ColumnSeries columnWidthRatio=".3"
dataProvider="{series3Col}" xField="BudgetType"
yField="PageLEHMANBROSINC_x2E_BudgetAmt" displayName="aap6" />
                            </mx:Array>
                        </mx:series>
                        </mx:ColumnSet>
            </mx:Array>
        </mx:series>
</mx:ColumnChart>

<mx:Legend dataProvider="{mainChart}" direction="horizontal" />

</mx:Application>





--
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



 




--
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