Width of stack chart not getting retained in Flex 4 but working in Flex3

I have a stack chart on  my dashboard when I click on stack chart it become a column chart. When I trying  to come back on stack chart by clicking on column chart the width of columns of  stack chart does not match with the previous stack  chart.
Note: The same code is  working fine in flex 3 version.
How can I maintain the  same width in both stack charts in flex 4 as it is performing in  flex3?
Step 1 Monthly stack chart.
Initially when I click on the equipment break down checkbox the stack chart appears as shown in the below screen shot.
Step 2: Monthly chart: Then when I click on the above “Monthly stack chart”, then I resume to my original bar chart appearance as shown in the below screenshot.
Step 3: Monthly stack chart: Further when I click on the above “Monthly chart” bar chart and move back to the “monthly stack chart” it appears as in the below screen shot in flex 4. The width of the chart in step 3 does not match with the width in step 1 of “Monthly Stack Chart”.
Note: In flex 3 the same step 3 appears to be as shown in the below screenshot.
How can I maintain the same width in step 1 and step 3 charts in flex 4 as it is performing in flex3?
CODE:
/* When click on column chart */
private function chartDrillDown(e:ChartItemEvent):void
{var colsr:ColumnSeries;
    If (chkEquipmentBreakdown.selected) Then
       {    loadBreakdownDataForMonth((e.hitData.chartItem.index)+1);
                     IsMonthly=true;
    Else
            DrillState=e;
              DrillLevel= DrillLevel==0?1:0;   
                  if(DrillLevel==1)
                  {chkDEMO.selected=false;
                        LastValidatedBox.visible=false;
                      siteid = e.hitData.item.VLD_SITE_ID;
                     var obj:Object=e.hitData.item;
            colsr = ColumnSeries(e.hitData.element)
                     strassetname = obj[strTitleField].toString();
                     drillToIndex = e.hitData.item.VLD_SITE_ID;
                    viewequivalentBreakdown();
                    fromAssetToMonthly=true;
                    loadMonthlyData(siteid);
        Else
                  {     if(fromAssetToMonthly==true)
     DrillLevel=DrillLevel==1?0:1;
                      else
                        LastValidatedBox.visible=true;
            colsr = ColumnSeries(e.hitData.element)
                       siteid="-1";
                       ShowHideEquipmentBreakdown(false);
                        loadYearlyData();
            If (IsMonthly) Then
                              onchkEquipmentBreakdownChange();
                        IsMonthly=false;
/* Bind data To column chart */
private function onDataLoadComplete(event:ResultEvent):void
{                                   webServ.removeEventListener(ResultEvent.RESULT,onDataLoadComplete);                
                  var resultArr:Array = event.result.toString().split("^");
                  xmlData = new XML(resultArr[0]);
                  xmlSeries= new XML(resultArr[1]);              
                  xmlColumns=new XML(resultArr[2]);
                  if(resultArr[3]!=null)
                  {     xmlValidatedData = new XML(resultArr[3]);
                        arrSeries=createSeries(xmlSeries,xmlValidatedData);
    Else
                        arrSeries=creatSeries(xmlSeries);
                  //chart properties
                  //arrSeries=creatSeries(xmlSeries);
                  colChart.series=arrSeries;
                arrcalc=arrSeries;
                  /*if equipment break down check box checked*/
        If (chkEquipmentBreakdown.selected) Then
                  {colChart.type="stacked";
        Else
                        colChart.type="clustered";
                  colChart.dataProvider=xmlData.Table;
                  cursorManager.removeBusyCursor();
/* function for load the step 1 and 3 "monthly stack chart".*/
private function onchkEquipmentBreakdownChange():void
                  colsrs.setStyle("showDataEffect", zoomOut);    
    If (chkEquipmentBreakdown.selected) Then
                  {  GHGDemo.visible=false;
                        AtmosBox.visible=false;
                        chkCompareYear.enabled=false;
                        cursorManager.setBusyCursor();
                        webServ.addEventListener(ResultEvent.RESULT, onDataLoadComplete);
                        if(strTitle==strTitle1)
                              if(GHGGROSS.selected==true)
                                    webOper = webServ.getOperation("LoadGHGDataMonthlyBreak") as Operation;
                webOper.send(userid,selectedYear,siteid);
            Else
                                    webOper = webServ.getOperation("LoadGHGMonthlyBreak") as Operation;
                webOper.send(userid,selectedYear,siteid);
/* function for load the step 2 "Monthly chart".*/
  private function loadBreakdownDataForMonth(monthnum:int):void
      {   var dayNum:uint = monthnum;
            cursorManager.setBusyCursor();
                  webServ.addEventListener(ResultEvent.RESULT, onDataLoadComplete);
                  var atmosflag:Boolean;
                  var ghggrossflag:Boolean;
                  atmosflag=false;
                  ghggrossflag=false;
                  if(strTitle==strTitle1)
                              if(GHGGROSS.selected==true)
                                    webOper = webServ.getOperation("LoadGHGDataMonthWiseGross") as Operation;
                        webOper.send(userid,selectedYear,siteid,monthnum);
                                    ghggrossflag=true;
        Else
                                    webOper = webServ.getOperation("LoadGHGBreakDownDataMonthWiseNet") as Operation;
                       webOper.send(userid,selectedYear,siteid,monthnum);
<mx:ColumnChart id="colChart" itemClick="chartDrillDown(event)"  dataTipFunction="dtFunc">
        <mx:horizontalAxis>
           <mx:CategoryAxis  id="catAxis"  />
                  </mx:horizontalAxis>
            <mx:verticalAxis>
              <mx:LinearAxis id="lnrAxis" baseAtZero="true" minimum="0" title="" labelFunction="defineVerticalLabel"/>
            </mx:verticalAxis>     
            <mx:horizontalAxisRenderers>
            <mx:AxisRenderer   axis="{catAxis}" labelRotation="45">
            </mx:AxisRenderer>
      </mx:horizontalAxisRenderers>
  </mx:ColumnChart>    

Thanks for your reply,
I am using the Adobe flash builder 4 and the Adobe flash player 10. To upgrade from flex 3 to flex 4 I just opened the project in flex 4.I am using the default skins/themes of Adobe flash builder 4.
But it is not working as flex 3. Please suggest some other option.
Thanks...

Similar Messages

  • Digital Signatures signed by Gemsign are not getting retained on flattened document in production

    Hi,
    Anyone please help me in solving the below issue.
    Digital Signature are not getting retained in the flattened version of Production which is designed by Adobe livecycle designer ES3 version. But if we use the same xdp file in development the Digital Signatures are getting retained on the flattened version. The Digital SIgnature are signed by Gemsign signature pad.

    Are production and development systems are on different versions?
    Can you explain more about the workflow? What do you mean by not retained ? Is signature getting cleared?
    --Santosh

  • I can not get my map link to work!!!

    I can not get my map link to work!!!
    The image it is on is surrounded by fixed images and is in <div id="display"> (see code below). Map links work just fine on the images that are in the fixed divs, but not the 'display' div.
    Can someone help?
    Code:
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Mobile Phone</title>
    <style type="text/css">
    body {
    margin: 0; 
    #wrapper {
      margin: 0 auto;
    top:0px
    #phone {
      width: 400px;
      margin: 0 auto;
      font-size:0;
    #top {
      position:fixed;
    #left {
      float:left;
      padding-top: 268px;
      position:fixed;
    #display {
      float: left;
      padding-top: 268px;
      padding-left: 28px;
      position:
    #right {
      float:left;
      padding-top: 268px;
      padding-left: 348px;
      position:fixed;
    #bottom {
      position:fixed;
      padding-top: 728px;
    </style>
    </head>
    <body style="background-color: #4B4B4B; padding-top: 0px;">
    <body>
    <div id="wrapper">
      <div id="phone">
        <div id="top"><img src="Images/top.fw.png" width="375" height="268" alt=""/></div>
        <div id="left"><img src="Images/left.fw.png" width="28" height="460" alt=""/></div>
        <div id="display"><img src="Images/AlbumPage.png" alt="" width="320" height="2000" usemap="#Map2"/>
          <map name="Map2">
            <area shape="rect" coords="3,437,317,470" href="Phone2.html">
          </map>
        </div><!-- This is the div you will use to place your mockup -->
        <div id="right"><img src="Images/right.fw.png" width="26" height="460" alt=""/></div>
        <div id="bottom"><img src="Images/bottom.fw.png" alt="" width="375" height="1076" usemap="#Map"/>
          <map name="Map">
            <area shape="rect" coords="35,3,74,42" href="goBack()">
          </map>
        </div>
      </div>
    </div>
    </body>
    </html>

    ' surrounded by fixed images'
    corrected to 'surrounded by fixed divs'.
    Sorry

  • HT204053 i have put in my apple id and password but still can not get imessage and facetime to work

    I have put in my apple id and password but still can not get imessage or facetime to work please help...thanks

    Please try to sign in at https://appleid.apple.com
    Check if your new username/email address is verfied
    If this works, delete your account on your iPhone (Settings > iCloud)
    Sign back in

  • Can not get Text-to-Speech to work

    I can not get Text-to-Speech to work. In "Settings", I can go into "Voice input & output", then to "Voice Output; Text-to-speech settings" and then to "Install voice data; Install the voice data required for speech synthesis" but it is "grayed out". I have downloaded Pico TTS several times and I have soft-reset and hard-reset the device several times. Still no text-to-speech
    Any thoughts on what I can do to get text to speech to work?

    posted11 wrote:
    Odd.... I tried both Vlingo and Handcent and neither of those did Text to speech either. Very odd. I am using same Bluetooth headset that worked on my other HTC device.
    Any other thoughts?
    Did you activate InCar in Vlingo?  I just checked this and it works for me.  Once you activate InCar, you should hear "Vlingo InCar".
    If Vlingo InCar doesn't work for you, have you considered getting another Bluetooth headset that has the ability to read texts to you, like the Blueant Q2?

  • I can not get Premiere Elements 11 to work on my Windows 7 , proffessional computer.

    I can not get Premiere Elements 11 to work on my Windows 7 , proffessional computer.

    goldstein
    Please define what you mean by
    I can not get Premiere Elements 11 to work on my Windows 7 , proffessional computer.
    Can you not install the program? If you cannot, how are you installing it, from an installation disc or installation files from Adobe? Are you looking at the tryout or a purchased product? At what stage of the installation are you blocked and with what messages? Do you have the anti-virus and firewalls turned off? Do you have another other computer protective software installed such as NetNanny?
    If you are getting through the installation OK, are you able to Sign In after the installation and restart of the computer?
    If you get into the opened project, when does the problem first manifest itself? Is the problem in a new project or in an existing one?
    Is the problem in one of the editing features?
    Is the problem in one of the export choices?
    Other?
    The answers will be in the details which allow us to help you.
    Thanks.
    ATR

  • Can not get the WebCam NX to work on yahoo messenger!

    Yes I can not get the webcam nx to work on yahoo messenger. I can send video and snaphots but I can not get it to work on yahoo messanger. What am I doing wrong? What do I need to do to get it to work. I just wanted it for the use of a web cam on yahoo messenger. What do I need to do. Please help! I have windows XP SP2 and yahoo messenger 6.0. So what do I need to do?
    Ashley

    Try going to this web site it worked for me. Evidently Yahoo knows about the problems with the web cams.
    http://help.yahoo.com/help/us/messen.../webcam-5.html

  • I can not get my regular mail to work since I changed to moved to iCloud. What do I need to do?

    I can not get my regular mail to work since i moved to iCloud. What do I need to do to update?

    Go to Settings>Wi-Fi.  At the bottom, make sure the "Ask to Join Networks" is ON.  When you are out and about, any network the iPad sees will be shown and it will ask you if you want to "Join" it.  If it is unsecure/free you tell it yes and you should connect.  However, if there is a little padlock looking icon shown with the network name, it means that it is a secure network and you need a password to join.  If you don't know it, you can't join.  At most Starbucks and such, the Wi-Fi is free and you should be able to simply connect.  Not really that hard.  There are not security settings on your iPad to adjust.  You'll figure it out.
    Best.

  • I HAVE AN APLLE 5 AND CAN NOT GET MY FACE TIME TO WORK

    I CAN NOT GET MY FACE TIME TO WORK ON MY APPLE 5 I HAVE TIRED TO LOG ON BUT THE PHONE SEND MEESAGE CAN NOT CONNECT??

    Please turn off your all caps.
    iOS: Troubleshooting FaceTime - Apple Support

  • Want to take back because i can not get my ipod touch to work on this

    I can not get my ipod touch to work on this Linksys WRT54g router at all.I called them and was on the phone for a hour and still can not get it to work.And it is not the ipod because if i go outside i can get on with someone router outside.Can someone Please Please Help Me with this i would like to be able to use my rounter.
    Regards
        Chippy

    Chippy:
    I'll assume you've read the iPod manual. The directions I have seem fairly straightforward - iPod connects to a wireless network when it discovers one. Or, if that option is turned off, you have to manually connect it.
    When it comes to attaching to your router, you will need to know what kind of security the router is using, what the security password is and most important - the router's DHCP function must be activated so the iPod can acquire an IP address.
    If the iPod truly can handle the connection, and you have the necessary information I mentioned, it should connect without a problem. But since you can't connect, you need to review the settings I mentioned.
    It's possible there is some sort of issue with the router and the iPod. But it's my guess that the iPod is not acquiring an IP address because the router is not giving them out.
    Check these things out and post what you find. If we can figure out the answer, your post will be helpful to others who may run into the same problem.

  • TS3274 I can not get my video button to work

    I can not get my video button to work, it will not response when I try to use it

    Try sliding the words up or down to select the various modes.

  • HT4796 I can not get windows migration assistant to work on my Sony Viao running windows 7

    I can not get windows migration assistant to work with Sony Laptop running windows 7.

    Hello,
    - What did you do so far ?
    - Do you have any error messages ?
    You will find a lot of useful informations on this page :
    http://support.apple.com/kb/HT4796

  • I can not get my apple Id to work on my iphone 4s

    I can not get my apple ID to work on my iPhone 4s. It keeps telling me my billing information is wrong.

    Have you tried signing out and back in? Go to Settings > Store. Select your Apple ID and then Sign Out

  • I can not get 'find my iphone' to work. I have followed the instructions to no avail...help!

    i can not get 'find my iphone' to work. I have followed the instructions to no avail...help!

    See the Troubleshooting in this... http://support.apple.com/kb/HT4319

  • I am having same problem with apple tv need 4.4 version and can not find solution this a brand new product out of box yesterday why would it not already have updated version. I am getting frustrated that I can not get this mirroring icon to work. I

    I am having same problem with apple tv need 4.4 version and can not find solution this a brand new product out of box yesterday why would it not already have updated version. I am getting frustrated that I can not get this mirroring icon to work. I have tried all suggestions in this thread and nothing works. I also hooked up to laptop through iTunes with micro USB nothing!!!

    The new appletv software came out 2 or 3 days ago, how would Apple get it on the device in the box in a store?
    Why don't ou update the appletv software?

Maybe you are looking for

  • Ad ons go to foxfire instead of thunderbird why and how do i fix it because it says for Thunderbird when i download them?

    My Ad Ons are going to FoxFire instead of Thunderbird even though it says for Thunderbird when I add them. The Theme pictures don't always show up in the Ad Ons when I want to search for a new one. The only way I can see them is if I reload and I thi

  • Error in Po transfer to SUS

    Hi experts I am using SRM Server 5.5 in EBP-SUS csenario. When I create a PO and send to SUS, I have an error in SUS side : An error occured in XI interface, Exception A:BBP_BUPA:263 -the order sender must be an compnyf E:BBP_PD:051 -Not found addres

  • How do I print on both sides of the paper on microsoft word, excel for mac?

    My printer supports printing in both sides of the paper, and prints fine on both sides any pdf file. But there is no way to make it print on both sides when using Microsft Word or Excel How do I set it up?

  • SSL CA Certificate Chain not available.

    Hey Everyone, I've got a Cisco 851 running IOS12.3. I'm trying to install a SSL Certificate but after following all the instructions and installing a CA certificate I'm not getting the full chain of authority in a browser just the devices certificate

  • CRS monitoring and recording

    Hi all: We have CRS 5.0 installed with agents using softphones. Some of the agents work in different LAN than CRS. That LAN is connected to the CRS LAN thru a WAN link. Those agents cannot be monitored or their calls cannot be recorder. After some re