In flex charts the label for next month get dropped

I found for DatatTimeAxis if you set disabledRanges to the last date of the month the label for next month gets dropped using property labelUnits='months". Any ideas? Below is the code:
<?xml version="1.0"?>
<!-- Simple example to demonstrate the DateTimeAxis class. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
     <mx:Script>
          <![CDATA[
               import mx.collections.ArrayCollection;
               [Bindable]
               public var stockDataAC:ArrayCollection=new ArrayCollection([{date: "2005, 6, 1",
                         close: 30}, {date: "2005, 7, 31", close: 25}, {date: "2005, 8, 3",
                         close: 40}, {date: "2005, 9, 4", close: 30}, {date: "2005, 10, 5",
                         close: 50}, {date: "2005, 11, 6", close: 43}]);
               private var d:Date=new Date("7/31/2005");
               [Bindable]
               private var offDays:Array=[d];
               public function myParseFunction(s:String):Date
                    // Get an array of Strings from the comma-separated String passed in.
                    var a:Array=s.split(",");
                    // Create the new Date object. Subtract one from
                    // the month property because months are zero-based in
                    // the Date constructor.
                    var newDate:Date=new Date(a[0], a[1] - 1, a[2]);
                    return newDate;
          ]]>
     </mx:Script>
     <mx:Panel title="DateTimeAxis Example"
                 height="100%"
                 width="100%">
          <mx:LineChart id="mychart"
                           height="100%"
                           width="100%"
                           paddingRight="5"
                           paddingLeft="5"
                           showDataTips="true"
                           dataProvider="{stockDataAC}">
               <mx:horizontalAxis>
                    <mx:DateTimeAxis dataUnits="days"
                                         parseFunction="myParseFunction"
                                         disabledRanges="{offDays}"
                                         labelUnits="months"/>
               </mx:horizontalAxis>
               <mx:verticalAxis>
                    <mx:LinearAxis baseAtZero="false"/>
               </mx:verticalAxis>
               <mx:series>
                    <mx:LineSeries yField="close"
                                      xField="date"
                                      displayName="AAPL"/>
               </mx:series>
          </mx:LineChart>
     </mx:Panel>
</mx:Application>

I found your posted code to be messed up. I fixed it and could not see your problem.
Here is the fixed code.
<?xml version="1.0"?>
<!-- Simple example to demonstrate the DateTimeAxis class. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
     <mx:Script>
          <![CDATA[
               import mx.collections.ArrayCollection;
               [Bindable]
               public var stockDataAC:ArrayCollection=new ArrayCollection([
                 {date: "2005, 6, 1", close: 30},
                 {date: "2005, 7, 31", close: 25},
                 {date: "2005, 8, 3", close: 40},
                 {date: "2005, 9, 4", close: 30},
                 {date: "2005, 10, 5", close: 50},
                 {date: "2005, 11, 6", close: 43}]);
               private var d:Date=new Date(2005,8,31);
               [Bindable]
               private var offDays:Array=[d];
               public function myParseFunction(s:String):Date
                    // Get an array of Strings from the comma-separated String passed in.
                    var a:Array=s.split(",");
                    // Create the new Date object. Subtract one from
                    // the month property because months are zero-based in
                    // the Date constructor.
                    var newDate:Date=new Date(a[0], a[1] - 1, a[2]);
                    return newDate;
          ]]>
     </mx:Script>
     <mx:Panel title="DateTimeAxis Example"
                 height="100%"
                 width="100%">
          <mx:LineChart id="mychart"
                           height="100%"
                           width="100%"
                           paddingRight="5"
                           paddingLeft="5"
                           showDataTips="true"
                           dataProvider="{stockDataAC}">
               <mx:horizontalAxis>
                    <mx:DateTimeAxis dataUnits="days"
                                         parseFunction="myParseFunction"
                                         disabledRanges="{offDays}"
                                         labelUnits="months"/>
               </mx:horizontalAxis>
               <mx:verticalAxis>
                    <mx:LinearAxis baseAtZero="false"/>
               </mx:verticalAxis>
               <mx:series>
                    <mx:LineSeries yField="close"
                                      xField="date"
                                      displayName="AAPL"/>
               </mx:series>
          </mx:LineChart>
     </mx:Panel>
</mx:Application>
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com
Flex / AIR Development, Training, and Support Services

Similar Messages

  • Hello I am coming to the united stats next month and i have a broken iphone 4 What are my options ? And could i replace it with the new iphone 5 or other apple products ? And how much will it cost me .  Thank you for you're time.

    Hello
    I am coming to the united stats next month and i have a broken iphone 4
    What are my options ?
    And could i replace it with the new iphone 5 or other apple products ?
    And how much will it cost me .
    Thank you for you're time.
    <Edited by Host>

    If that iPhone was orignally sold in the US, Out of Warranty replacement cost
    will be
    Phone 4, iPhone 3GS,
    iPhone 3G, Original iPhone
    $149
    Replacement will be an iPhone of the same color and GB. There is no option to upgrade
    using Out of Warranty replacement.

  • Trying to change the labels for some UI elements

    hi,
    Problem:  I am trying to change the labels for some UI elements and transport the views from one server to another server.
    the lables show changed in the source server but the changes dont reflect in the destination server
    Kidly help me to slove this problem

    Hi Sharad
    The process is as explained:
    1.     Firstly, go to the respective view, and to the Label and then delete the Label Text as   
                    mentioned in the attribute u2018TEXTu2019 of the Label in the view.
    2.     Next, Activate the View, if it asks for a change request, please assign it to a new TR.
    3.     Finally give the Label text again and then Save it and activate it.
    4.     Further transport the request to ECP and find the difference.
    This especially happens when we frequently change the WD Component and embedd it entirely in the Transport.
    I hope this information would be of a great help to all of us.
    Ponts if helpful.
    Regards
    Roshan

  • Moving to the UK for 6 months . . . Suggestions?

    Hello -
    My company is sending me to the UK for 6 months for business and I am trying to debate whether or not I should take my PowerBook. I know (but correct me if I am wrong) that I can take my PowerBook, buy the universal adapter and pretty much use it like I would here in the states.
    My dilemma is that I was considering updgrading anyways, so if I was going to sell it now and then buy a new one when I got home what would be the best way to preserve all of my files, settings, etc?
    I have an 80 GB HD, if I buy an external HD that is also 80 GB can I make an exact replica of my PowerBook, store the external for 6 months and then when I get home buy a new one, boot it up and transfer all of my files and settings to my new PowerBook or iBook?
    Any suggestions would be great, thanks.

    Thanks for the feedback, it is good to know that if I decide to take it I won't have any issues getting internet, etc.
    The main point of my question hasn't been answered. If I don't take my PowerBook with me what is the best way to store my files and settings so when I buy a new PowerBook I can transfer everything over like I would if I was just buying a new one and doing it the next day? (If this is even possible)
    If I buy an 80 GB External will it be enough room to create an exact copy of the 80GB HD in my PowerBook or should I buy a larger external to ensure enough room?

  • Can individuals (students) purchase Adobe CC (one application or all) for just a portion of the year (i.e. a semester - 1 to 4 month span)?  My students would like to purchase the program for a month at a time without making a yearly commitment.

    Can individuals (students) purchase Adobe CC (one application or all) for just a portion of the year (i.e. a semester - 1 to 4 month span)?  My students would like to purchase the program for a month at a time without making a yearly commitment.

    Sure they can, just not for a student discount.
    Mylenium

  • How to send a text message to a group of people and save the list for next time?

    how to send a text message to a group of people and save the list for next time from an iphone 4s?

    Hey there ipremacha,
    It sounds like you need to enable Text Message Forwarding on your iPhone for your iPad to send MMS/SMS messages through your phone.
    Connect your iPhone, iPad, iPod touch, and Mac using Continuity
    Go to Messages > Text Message Forwarding, and enable the device(s) you would like to forward messages to.
    Your Mac, iPad, or iPod touch will display a code. Enter this code on your iPhone to verify the SMS feature.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • Scripts for changing the address of the user when they have been in the box for 6 months

    Scripts for changing the address of the user when they have been in the box for 6 months
    If users are in a folder for deactivated users and disabled users in Active Directory, and been there for 6 moths do: change email address in exchange to existing email address.old 
    Anyone have suggestions on how I can go about it?

    What is this "box"?  What is this "folder" you're asking about?  You'll likely get a better answer if you use standard terminology.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • How to get back money paid for next month subscrit...

    Inspite of cancelling automatic subscription,skype has charged subscription for next month.please help to revert it back.

    Hi,
    https://support.skype.com/en/faq/FA1881/How-do-I-c​ancel-my-subscription ?
    https://support.skype.com/en/faq/FA297/How-do-I-re​quest-a-refund ?
    https://support.skype.com/en/faq/FA1170/How-can-I-​contact-Skype-Customer-Service ?
    Hth
    On ne regarde pas l'avenir dans un rétroviseur !
    IMac Intel Core i3 3.2 GHz - RAM 12 GB - OS 10.10.3
    Skype 7.8.391
    Logitech usb headset or Jabra 250 bt

  • Programming Logic required for pulling the records for past month /week

    Hi All
    I need help in the SQL programming logic.
    Oracle Database Version: 10.2.0.3.0
    Requirement
    In a data warehouse environment, I need to programme for weekly and monthly automated batch jobs to insert the data from Data_tbl to Reporting_tbl for generating reports. Tables descriptions are given below.
    Table1 - Data_tbl (Source table –this table gets updated everyday).
    Record_dt     first_name     last_name
    Table2 - Reporting_tbl_(Target table)
    Cycle_dt     first_name     last_name
    1. Monthly Report
    In the SQL Query, I have where clause condition—
    Where Record_dt >=’01-nov-08’ and record_dt<=’30-nov-08’
    Using the above condition in development, I am pulling the data from source table for the past month data. This will be repeated every month and it should be automated.
    i.e., if I run this report any time in dec 2008, it should pick records of dates from Nov 01st to Nov 30th 2008. if I run this report any time in Jan 2009, it should pick records of dates from Dec 01st to Dec 31st 2008.
    Date Values should be assigned for past month. Value of Cycle_dt in target table should be end date of past month like 30-nov-2008, 31-dec-2008.
    2. Weekly Report
    In the SQL Query, I have where clause condition—
    Where Record_dt >=’01-dec-08’ and record_dt<=’07-dec-08’
    Here week start day is Monday and end day is Sunday.
    If I run the report between Dec 08th to Dec 14th , it should pull records of dates from Dec 01st to Dec 07th 2008.
    On Dec 15th, it should pick from Dec 08th to Dec 14th.
    Value of Cycle_dt in target table should be end date of past week like 07-Dec-2008, 14-Dec-2008.
    Please help me with the logics for both Monthly and Weekly reports.
    Thanks

    Hi,
    For the monthly report, instead of
    Where Record_dt >=’01-nov-08’ and record_dt<=’30-nov-08’say:
    Where   Record_dt >= TRUNC (ADD_MONTHS (SYSDATE, -1), 'MM')
    and     record_dt <  TRUNC (SYSDATE, 'MM')SYSDATE is the current DATE.
    TRUNC (SYSDATE, 'MM') is the beginning of the current month. (Notice the condition above is less than this date, not equal to it.)
    ADD_MONTHS (STSDATE, -1) is a date exactly one month ago, therefore it is in the previous month.
    For the weekly report, instead of:
    Where Record_dt >=’01-dec-08’ and record_dt<=’07-dec-08’say
    Where   Record_dt >= TRUNC (SYSDATE - 7, 'IW')
    and     record_dt <  TRUNC (SYSDATE, 'IW')TRUNC (dt, 'IW') is the beginning of the ISO week (Monday-Sunday) that contains dt. Again, notice the end condition is strictly less than the beginning of the current week.

  • We still can't print an invoice of our Creative cloud. There's a failure in the system FOR 8 MONTHS NOW. Why can't this be solved ??????????

    We still can't print an invoice of our Creative cloud. There's a failure in the system FOR 8 MONTHS NOW. Why can't this be solved ??????????

    Yes I have been in contact. Thanks in advance,
    Met vriendelijke groet, With kind regards,
    Hotel Mitland
    Rob Plijnaar
    Directeur

  • How do I get the Label for a Front Panel Control to appear in the Block Diagram but not on the Front Panel?

    How do I get the Label for a Front Panel Control to appear in the Block Diagram but not on the Front Panel? On the Front Panel I am making a complex control that consists of a Slider and a Numerical Input box. Both Controls display the same information and either can be used for Input. When one changs, the other is made to display the same value.
     But I only want the Slider to display the Label on the Front Panel, to avoid confusion. On the Block Diagram however, I want both controls to display their Labels so that I know what they are. How do I display the Label for a Control on the Block diagram, but not display its Label on the Front Panel?

    No.  The Label Visible property is separate for the front panel control label and the block diagram terminal label.
    How did you start out with the block diagram's label not being visible?  Whenever I drop a control or indicator, the label is always visible on both the FP and BD by default.  Maybe there is a LabVIEW option that causes new controls/indicators not to have their labels visible by default, but I have yet to find it.  I don't think an item should ever be dropped without the label visible, good LabVIEW coding practice demands that the labels for control terminals on the block diagram be visible so that you know what control or indicator a wire is going to.
    That being said, I have seen a lot of VI's posted where the label for the terminal on the BD is not shown (against good programming practice.)  I've gone to the BD and right clicked to show the label.  Sometimes, the people have an empty label (which will turn off the visibility for both the FP and BD) and I'm forced to add some text of my own into the label so I can figure out what their code is doing.  When I add some text to the label, at that time, I find both the BD and FP labels become visible.
    Are you dealing with controls that have empty labels to start?
    Good programming practices:
    1.  Always have a name for all of your controls, never use and empty label by deleting the text in the label.
    2.  Make the labels unique.  For example, don't have two controls both called Stop.  How do you know quickly know which terminal relates to which control?
    3.  Always show the labels on the block diagram, so you know the function of a control's terminal.  If you want to hide the label on the FP, that's okay.
    4.  If you want a different label to appear on the FP than whatever you actually called the control, then use the caption.  You can hide the label and show the caption.  This is useful if you need to programmatically change what the "label" is on the front panel such if you are making an application that needs to change its user interface such as for a foreign language.

  • Where can I find the history in Safari? It shows only 2 days while I have saved the history for 1 month.

    Where can I find the history in Safari? It shows only 2 days while I have saved the history for 1 month.

    Hello Barbara,
    Thank you for the question.  It sounds like you are only seeing the 2 most recent days of your web browsing history in Safari. 
    If you haven't tried this yet, I suggest going to History > Show All History when Safari is open to see if more sites come up.  You can find this step and more information at the following link:
    Safari 6 (OS X Mountain Lion): Revisit webpages
    http://support.apple.com/kb/PH11850
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I bought the CC for a month it was $9.99 I downloaded CC but now what apps can I get is it lightroom and Photoshop?

    I bought the CC for a month it was $9.99 I downloaded CC but now what apps can I get is it lightroom and Photoshop?

    That is the photography plan, if you want more programs you need the full CC plan.

  • Generate all the dates for given month

    Hi all,
    How can I generate all the dates for given month? For example If I give Feb-2008 then it should display all the dates from 01/02/2008 to 29/02/2007
    Thanks,
    Sujnan

    This question was expanded (and answered) at
    Monthly Report
    You can also search for "all days in month".

  • I deleted a message from iCloud mail. It says it is saved on the server for 1 month. Can I get to it?

    I deleted a message from my iCloud mail (and emptied the trash) on my MAC that I didn't mean to. In my iCloud IMAP settings it says that deleted mail will be saved on the server for 1 month. How do I get to it?

    Go to http://www.icloud.com and go to the Mail page there. Open the Trash mailbox. If the message is there you can move it out. If it isn't, then I'm afraid it's gone. The 'delete after x days' setting in the Mail application is over-ridden by the automatic deletion in the iCloud server - I have an idea that's 7 days but I'm not sure.

Maybe you are looking for