This I believe is a bug and was fixed in Flex 3 Beta 2. Here is the bug
id https://bugs.adobe.com/jira/browse/FLEXDMV-1252

 

Thanks

-Sunil

 

________________________________

From: Steve Waugh [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 13, 2007 2:45 PM
To: flexcoders@yahoogroups.com; Sunil Bannur
Subject: Re: [flexcoders] Bubble chart BUG??

 



  Hi Sunil,

  I am using flex 2 but I am sure it will be same on Flex 2.0.1.
  Here is an example code. Please note that once you drag
  the bubble chart canvas all the  way up the  Y axis
  disappears and bubbles lose their Y coordinate value. I have 
  seen in some other instances  that all the bubbles almost
  appear on same line which means same Y value. I am
  attaching the code here:

  It is very straight forward and simple code.



<?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]
        private var expensesAC:ArrayCollection = new ArrayCollection( [
            { Month: "Jan", Profit: 2000, Expenses: 1500, Amount: 450 },

            { Month: "Feb", Profit: 1000, Expenses: 200, Amount: 600 },
            { Month: "Mar", Profit: 1500, Expenses: 500, Amount: 300 },
            { Month: "Apr", Profit: 1800, Expenses: 1200, Amount: 900 },

            { Month: "May", Profit: 2400, Expenses: 575, Amount: 500 }
]);
        ]]>
    </mx:Script>

    <mx:XMLList id="employees">
        <employee>
            <name>Christina Coenraets</name> 
            <phone>555-219-2270</phone>
            <email>[EMAIL PROTECTED]</email>
            <active>true</active>
        </employee>
        <employee>
            <name>Joanne Wall</name>
            <phone>555-219-2012</phone>
            <email> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
</email>
            <active>true</active>
        </employee>
        <employee>
            <name>Maurice Smith</name>
            <phone>555-219-2012</phone> 
            <email>[EMAIL PROTECTED]</email>
            <active>false</active>
        </employee>
        <employee>
            <name>Mary Jones</name> 
            <phone>555-219-2000</phone>
            <email>[EMAIL PROTECTED]</email>
            <active>true</active>
        </employee> 
    </mx:XMLList>

    <mx:Panel x="10" y="10" width="726" height="618" layout="absolute">
        <mx:VDividedBox x="0" y="0" width="100%" height="100%"> 
        
      <mx:Canvas height="100%" width="100%">
        <mx:BubbleChart id="bubblechart" 
            height="100%" width="100%"
            paddingRight="5" paddingLeft="5" 
            showDataTips="true" maxRadius="20"
            dataProvider="{expensesAC}">

            <mx:series>
                <mx:BubbleSeries displayName="Profit/Expenses/Amount" 
                    xField="Profit" yField="Expenses"
radiusField="Amount"/>
            </mx:series>            
        </mx:BubbleChart>
      </mx:Canvas>        


      <mx:Canvas height="0%" width="100%">        
        <mx:DataGrid id="dg" width="100%" height="100%" rowCount="5"
dataProvider="{employees}"> 
            <mx:columns>
                <mx:DataGridColumn dataField="name" headerText="Name"/>
                <mx:DataGridColumn dataField="phone"
headerText="Phone"/> 
                <mx:DataGridColumn dataField="email"
headerText="Email"/>
            </mx:columns>
        </mx:DataGrid>        
      </mx:Canvas>                
        
        </mx:VDividedBox>
    </mx:Panel>
</mx:Application>





























On Dec 12, 2007 3:44 AM, Sunil Bannur <[EMAIL PROTECTED]> wrote:

What is the version you are using Flex 2.0.1, Flex 3 Beta 1, Flex 3 Beta
2? Also, could you post a little code snippet, which causes this.

 

-Sunil

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hworke
Sent: Wednesday, December 12, 2007 5:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Bubble chart BUG??

 


Hi,

in a VDividedBox I have a grid and a bubble chart as children.
Initially Bubble chart's height is 100% and grid's height is 0%.
So only the Bubble chart is visible.

Now If I drag the grid all the way up and make the chart totally
disappear then the next time I drag down the bubble chart part,
all the bubbles appear in one line. The bubbles of the chart lose
their axis values and appear in one line. Is this a BUG? Is there
any work around for this?

Regards,

Steve 

 

 

Reply via email to