Flex Date Time Axis Not showing Correct Values

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   xmlns:s="library://ns.adobe.com/flex/spark"
   xmlns:mx="library://ns.adobe.com/flex/halo" width="700" height="500">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var stockDataAC:ArrayCollection = new ArrayCollection( [
{date: "2005, 7, 27", close: 41.71},
{date: "2005, 7, 28", close: 42.21},
{date: "2005, 3, 29", close: 42.11},
{date: "2005, 1, 1", close: 42.71},
{date: "2005, 10, 2", close: 42.99},
{date: "2005, 9, 3", close: 44} ]);
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.
// The month property is zero-based in the Date constructor.
var newDate:Date = new Date(a[0],a[1]-1,a[2]);
return newDate;
]]>
</fx: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"/>
</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>
</s:Application>
the above code shows reverse values of date on date axis i.e it should show 01/05 2/05 3/05 4/05 but its showing 10/05 09/05 08/05 07/05 on date axis.
Please help.

I've seen this bug in Adobe's JIRA so nothing much you can do for now   DateTimeAxis is quite bugged.
By the way, is it me or mx:datavisu is on low priority these days ? Maybe the team is working on a spark version ?
https://bugs.adobe.com/jira/browse/FLEXDMV-2231

Similar Messages

  • Report S_ALR_87012000 Asset Register does not show correct values sums

    Hi,
    I've taken a look at S_ALR_87012000 transaction - Asset Register (Italy) after an Assets Data transfer and something strange happens:
    1-  the sum of column Depreciation for year is not correct. It is a little bit strange because the single assets depreciation for year is correct. The same problem is in report S_ALR_87011990  - Asset history sheet
    2- if I put  an asset number range or the asset class in the report selection screen the report does not show some of the assets included in the range or in the asset class.
    Could you explain me why? Is there some program bug?
    Thanks in advance
    Giovanna

    Hi
    If you are executing the reports for previous / future years - execute them as of last day of the fiscal year
    The execution for current year can have any date of the fiscal year for report execution
    BR,Ajay M

  • Navigational attribute not showing correct values

    Hello,
    I have a Notification cube Z_QM_C09, Apart from other infoobjects, it has Notification (0Notificatn) and one of its Nav attr 'Esc Category (0NOTIFICATN_/BIC/Z_ESC_CAT).
    The Master data for one of the Notification is as shown below
    /BI0/PNOTIFICATN - Master data table                   
       SOURSYSTEM   NOTIFICATN         OBJVERS   /BIC/Z_ESC_CAT   
       P1                        005000482694    A                (Blanks)     
    /BI0/XNOTIFICATN - SID Table attr                                                                   
      Notification SID      OBJVERS     SOURSYSTEM       NOTIFICATN          S__Z_ESC_CAT                    
       30,233,260            A                   P1                          005000482694      7                                                                               
    However, when I check the data in the cube for the same Notification, the data is as shown below;
    Notification         Notification SID      Z_ESC_CAT    Z_ESC_CAT SID
    5000482694         30,233,260            ESC2               7
    Can anyone throw some light on why this would be happening?
    Thanks for your input!
    Bala

    Hi,
    I believe Master data was loaded after the Transactional Data.
    You can do a full load for the Master data from the Data soruce from the Navigational Attribute is beng updated.
    And then acitvate it, No need to load the Transaction data as in the cube the value of Notificaiton is being refered from Master data.
    The above load will not have any side affects and is worth trying for.
    Hope this resolves.
    Thanks,
    Karan

  • LIS Not showing correct values

    Dear All
    We are having a peculiar situation in MCSI report which is customized.  where order quantity is "0" after changing it from original quantities where as the gross order value(field name - KZWI1) is having same value despite change in the order quantity. 
    For instance:
    Scenario 1:
    Order no: 100       ( through va01 mode)
    Order qty                   10    
    Order value                1000       
    Scenario 2:
    Order no: 100  (through va02 mode)
    Order qty                  1
    Order value              1000     This is not changing.
    Can some one help....
    Thanks

    Hi,
    After creating your order run MCVR for your sales doc number.
    Then after changing your order do the same thing. Check after the change if your LIS/SIS structure is being updated.
    You can double click to see key values and characteristics.
    If you dont see your LIS SIS structure then you can start your analysis.

  • Date function is not returning correct value

    I have used the following code to display only the value for last seven days. it works fine in homepage(www.dealfindit.com)  but in other page like category(www.dealfindit.com and click MP3 )
    SELECT title, merchant, image, price, price_price, dollar_sign, click_here, listprice_text, dealexpire_text, added_text, to_shop, price_note, description, link_product, shipping_info, tax_info, other_info, deal_expire, list_price, category_items, buying_instruction, DATE_FORMAT(date_created, '%m/%d/%Y %l:%i %p') AS 'date_created_alias',DATE_FORMAT(date_created,'%W %M %d %Y') AS 'date_only'
    FROM mylist
    WHERE date_created > SUBDATE(NOW(), 7)
    ORDER BY date_created DESC
    code for category page
    ======================
    SELECT title, merchant, image, price, price_price, dollar_sign, click_here, listprice_text, dealexpire_text, added_text, to_shop, price_note, description, link_product, shipping_info, tax_info, other_info, deal_expire, list_price, category_items, sub_category, buying_instruction, DATE_FORMAT(date_created, '%m/%d/%Y %l:%i %p') AS 'date_created_alias',DATE_FORMAT(date_created,'%W %M %d %Y') AS 'date_only'
    FROM mylist
    WHERE date_created > SUBDATE(NOW(), 7) AND title LIKE '%colname%' OR sub_category  LIKE '%colname%' OR category_items LIKE '%colname%'
    ORDER BY date_created DESC

    When combining AND with OR's in your where clause, be careful  of order of operations. In your case, you probably want to add parenthesis:
    WHERE date_created > SUBDATE(NOW(), 7) AND (title LIKE '%colname%' OR sub_category  LIKE '%colname%' OR category_items LIKE '%colname%')

  • Account Balance not showing correctly

    Sir,
    Suppose , i have posted an invoice  of Rs.200 against a customer and after some times i recieved payment from this customer of Rs.200 So,  accout balance of this customer should be zero.. But when i see the account balance from business partner master data , it should me Rs.-400 in accout balance field but when i navigate through orange arrow in to accoutn balance details , there i get  zero in balance due field?? ie. it is showing coorectly in details of account ballance but in the business partner master data it is not showing correctly??

    hi divya,
    Check SAP Note 904002 - Customer account balance is displayed with negative sign
    Summary
    Symptom
    Customer Balance is displayed with minus.
    Other terms
    Customer balance, Supplier Balance, Credit Balance, Debit Balance, Display Credit Balance with Negative Sign, Company Details, System Initialisation, business partner, accounts, SAP Business One
    Reason and Prerequisites
    Customer balance is displayed in negative though you expect it to be positive.
    Solution
    Under Administration->System Initialisation->Company Details and the 'Basic Initialisation' tab you will find the setting 'Display Credit Balance with Negative Sign'. This setting decides how Customer and Supplier balances will be displayed.
    NOTE!
    When creating a company it is important to know that this setting is irreversible once transactions have been made in the company.
    When this box IS checked the following applies:
    Customer balances will be displayed as Positive.
    Supplier balances will be displayed as Negative.
    When this box IS NOT checked the following applies:
    Customer balances will be displayed as Negative.
    Supplier balances will be displayed as Positive.
    This setting also influences the entry of opening balances for the G/L accounts. Depending on this setting, the opening balances must be entered as positive or negative numbers.
    By default this box is checked when a new company is created.
    Header Data
    Release Status: Released for Customer
    Released on: 02.12.2005  10:42:10
    Master Language: English
    Priority: Recommendations/additional info
    Category: Consulting
    Primary Component: SBO-ADM-INI-DET Company Details
    Secondary Components: SBO-BP Business Partners
    Affected Releases
    Release-Independent
    Hope it solves problem.
    Jeyakanthan

  • How can I modify the High Speed Data Reader VI to show correct time information in x-axis?

    I am just a beginner learning the LabVIEW programming currently.
    I have a PXI 6115 DAQ card and have to make a hardware timed acquisition VI for maximum performance. Thus I use the High Speed Data Logger VI for data acquisition.
    However, when I read my data by using the High Speed Data Reader VI, it doesn't show its correct time information in the graph.
    How can I modify the High Speed Data Reader VI to show correct time information in x-axis?
    I hope you can explain easily because I am a beginner.

    First, I couldn't seem to find that example either on computer or on the NI sites.
    The problem that we're running into is stated in the article that I pointed to - when real time VIs are running, then the OS will stop updating the OS clock. TO us it looks like the clock is losing time. There is a hardware clock on the PXI and it is read only during boot up to set the OS clock. Our discussions with NI have not led to a solution for this problem without checking the time on start and then checking the tick count (which does not lose time) and calculating what the current time is. No access to the hardware clock is supplied.
    We're still working on a simpler way to get accurate time.
    Rob

  • How can I modify the High Speed Data Reader VI to show correct time informatio​n in x-axis?

    I am just a beginner learning the LabVIEW programming currently.
    I have a PXI 6115 DAQ card and have to make a hardware timed acquisition VI for maximum performance. Thus I use the High Speed Data Logger VI for data acquisition.
    However, when I read my data by using the High Speed Data Reader VI, it doesn't show its correct time information in the graph.
    How can I modify the High Speed Data Reader VI to show correct time information in x-axis?
    I hope you can explain easily because I am a beginner.

    Hey Chunrok,
    I've modified the High Speed Data Reader VI slightly so that it now uses the scan rate of the data (as determined from the file) to set the scaling for the data points. If you wanted the start time to be a specific time you could use the start time obtained from your file to set the xscale offset as well.
    I hope this helps!
    Sarah Miracle
    National Instruments
    Attachments:
    Example.vi ‏281 KB

  • Lion: Finder: Column View: Date Last Opened is not show correctly

    Hi Folks,
    I have upgrade my macs from 10.6.8 to 10.7.
    I am using the column view in the finder and I noticed that the
    Date Last Opened is not show correctly in the preview column.
    If I use the the list view and show the column Date Last Opened
    all dates are correct. Using the column view, the Date Last Opened
    allways matches the Date Last Modified.
    The attached screenshot shows an example with the same
    file at in both views mentiond above.
    I have noticed this problem with internal and external drives
    using the filesystem Mac OS Extended (Journaled).
    Is there way known to fix this behavior. In Snow Leopard it worked fine.
    Thank you for your support.

    Same here, however I found a strange work around.
    Go to your applications folder, for instance. Click the gear icon, go to Arrange By, then select Date Last Opened. It will correctly show the last opened time and arrange them accordingly. Switch back to arrange by name and the last opened date reverts back.
    It's not a bug, it's a feature!

  • ME23n , Does not shows the values correctly in print preview

    Hi,
    When viewing a PO using ME23n , it does not shows the values correctly in the print preview.
    For example;
    This is the vendor & its address.  (check attached image img1.jpg)
    ZERANDIB BUSINESS APPLIANCES
    Number-122/A
    PO BOX 41,112,REID AVENUE
    COLOMBO-04
    When displaying the print preview, it shows only some parts of the above address
    Shows only; (check attached image img2.jpg)
    ZERANDIB BUSINESS APPLIANCES
    PO BOX 41,112,REID AVENUE
    These values are getting from a table called LFA1. I have checked that table & in that table all the values exists correctly.
    I have noted issue is with, having only a single word. (If address or name having only a single word, that is without spaces, it will not going to show in the print preview) -
    In the above example, it is not showing Number-122/A and  COLOMBO-04 (Its a single word. No spaces there)
    If its like --> Number - 122/A   &  COLOMBO - 04 ,  then it will display in the print preview correctly (where there are spaces after - mark)
    check img3.jpg
    If its having more than one word, then it will display correctly in the print preview.  As below;
    ZERANDIB BUSINESS APPLIANCES
    Number - 122/A
    PO BOX 41,112,REID AVENUE
    COLOMBO - 04
    If its 2 or more words, it shows correctly.
    If its 1 word, then its not showing!
    Why it is happening like that? Any ideas how to resolve this issue?
    regards.
    zerandib

    It turns out that this problem went away after the program crashed.  Everything seems to be working well now.

  • Not showing correct output when parsing the date

    //WAP the gives the details of employees
    import java.io.*;
    import java.util.*;
    import java.text.Format;
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    class employee
      private String nm,curr_dt;
      private Date dob,doj;
      private int salary;
               employee()
                  nm="\0";
                  dob=null;
                  doj=null;
                  curr_dt=null;
                  salary=0;
               void getdata()throws IOException
                  String dt;
                  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
                  //we can create date with these 3 type of objects
                  Format fm=new SimpleDateFormat("dd-mm-yyyy");
                  DateFormat df=new SimpleDateFormat("dd-mm-yyyy");
       //object of base class are type compatible with the object of derived class
                  SimpleDateFormat sdf=new SimpleDateFormat("dd-mm-yyyy");
                  System.out.print("\nEnter the name of Employee : ");
                  nm=br.readLine();
                  try{
                  System.out.print("\nEnter the date of birth of Employee : ");
                  dt=br.readLine();
                  dob=(Date)fm.parseObject(dt);
                  System.out.print("\nEnter the date of joining of Employee : ");
                  dt=br.readLine();
                  doj=df.parse(dt);
                  }catch(ParseException e){
                  Date d=new Date();
                  curr_dt=sdf.format(d);
                  System.out.print("\nEnter the salary of employee : ");
                  salary=Integer.parseInt(br.readLine());
               void putdata()
                  System.out.println("\n\n\nEmployee Name : "+nm);
                  System.out.println("\nDate of birth : "+dob);
                  System.out.println("\nDate of joining : "+doj);
                  System.out.println("\nCurrent date : "+curr_dt);
                  /*if((doj-curr_dt)>1)
                       salary+=3000;
                  System.out.println("\nSalary of Employee : "+salary);
    class emp
      public static void main(String str[])throws IOException
           employee emp[]=new employee[1];
           System.out.println("\nEnter the detail of employees \n\n");
           for(int i=0;i<1;i++)
                emp=new employee();
    emp[i].getdata();
    System.out.println("\n\nDetail of employees are\n\n");
    for(int i=0;i<1;i++)
    emp[i].putdata();
    }*Output:*
    Enter the detail of employees
    Enter the name of Employee : Rajendra Sharma
    Enter the date of birth of Employee : 10-10-1979
    Enter the date of joining of Employee : 05-09-2004
    Enter the salary of employee : 2000
    *it is not showing date in the "dd-mm-yyyy" format and not showing correct month as well*
    Detail of employees are
    Employee Name : Rajendra Sharma
    Date of birth : Wed Jan 10 00:10:00 IST 1979
    Date of joining : Mon Jan 05 00:09:00 IST 2004
    Current date : 17-08-2008
    Salary of Employee : 2000                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    Use below code that will help u to sort ur problem.
    import java.io.*;
    import java.util.*;
    import java.text.Format;
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    class employee
    private String nm,curr_dt;
    private Date dob,doj;
    private int salary;
    private String dobb,dojj;
    employee()
    nm="\0";
    dob=null;
    doj=null;
    curr_dt=null;
    salary=0;
    void getdata()throws IOException
    String dt;
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    //we can create date with these 3 type of objects
    DateFormat fm=new SimpleDateFormat("dd-mm-yyyy");
    DateFormat df=new SimpleDateFormat("dd-mm-yyyy");
    //object of base class are type compatible with the object of derived class
    SimpleDateFormat sdf=new SimpleDateFormat("dd-mm-yyyy");
    System.out.print("\nEnter the name of Employee : ");
    nm=br.readLine();
    try{
    System.out.print("\nEnter the date of birth of Employee : ");
    dt=br.readLine();
    dob=(Date)fm.parseObject(dt);
    dobb= fm.format(dob);
    System.out.print("\nEnter the date of joining of Employee : ");
    dt=br.readLine();
    doj=df.parse(dt);
    dojj = df.format(doj);
    }catch(ParseException e){
    Date d=new Date();
    curr_dt=sdf.format(d);
    System.out.print("\nEnter the salary of employee : ");
    salary=Integer.parseInt(br.readLine());
    void putdata()
    System.out.println("\n\n\nEmployee Name : "+nm);
    System.out.println("\nDate of birth : "+dobb);
    System.out.println("\nDate of joining : "+dojj);
    System.out.println("\nCurrent date : "+curr_dt);
    /*if((doj-curr_dt)>1)
    salary+=3000;
    System.out.println("\nSalary of Employee : "+salary);
    class emp
    public static void main(String str[])throws IOException
    employee emp[]=new employee[1];
    System.out.println("\nEnter the detail of employees \n\n");
    for(int i=0;i<1;i++)
    emp=new employee();
    emp[i].getdata();
    System.out.println("\n\nDetail of employees are\n\n");
    for(int i=0;i<1;i++)
    emp[i].putdata();
    thanks,
    prabhu selvakumar.

  • Why date and time do not show as links in some email message in 4s?

    why date and time do not show as links in some email message in 4s?

    To add it back, tap the Edit button at the top of the list of mailboxes and select the missing email account so that it has a tick against it (you can also change their order in the list by dragging the parallel line icon to an account's right), tapping Done should then get it to show in the list

  • Times of posts not showing correctly for my time zone

    The times of posts not showing correctly for my time zone ( I am in London UK).
    How do I fix this?
    TIA

    Your stuff>profile>edit preferences
    Barry

  • HT6154 iphone 5s reminder app is not reminding at all. Rather I input in manually or through Siri; the reminder is there but the date & time is not. When input manually; the date & is deleted after a few seconds. How is this corrected?

    After the latest software update; the iPhone 5s reminder app is not reminding at all. Rather I input in manually or through Siri; the reminder is there but the date & time is not. When inputed manually; the date & is deleted after a few seconds. How can this be corrected?
    big Geo.

    After the latest software update; the iPhone 5s reminder app is not reminding at all. Rather I input in manually or through Siri; the reminder is there but the date & time is not. When inputed manually; the date & is deleted after a few seconds. How can this be corrected?
    big Geo.

  • Finder not showing correct free space for DROBO

    I have replaced a "working" 16TB (8*2TB drive) DroboPlus with (3*4TB +5*2TB) drives after a low space warning ( just under 1TB free with double redundancy)
    I Am having the problem with free memory being shown as 439.4 Mb from Yosemite finder for my FW800 connected DroboPro (1.2.2) ( also using USB2)
    (It very very occasionally it shows the correct value but there does not seem to be a logic in it.)
    MBP (early2011) 10.10.1
    running just one 16TB volume,
    Drobo Dashboard (2.6.3) shows 9.81TB used with 6.18TB free  ( from 20TB 4+4+4+2+2+2+2+2 single redundancy=3.94TB)
    "About this mac">Storage shows 6.8TB free of 17.59TB (with data type other=10.79TB)
    Disk Utilty shows Drobo as 17.59TB with 6.8TB available.
    How can I get finder to show a more "correct" value, as I cannot save any files (>439Mb) to it despite plenty of memory available.
    Other applications and OS DiskUtility and Storage show correct values.
    I have tried saving a small file at route level and also preventing spotlight from indexing it, both make no difference.
    Drobo non-Suport do not want to know as the DroboPro is no longer available.  Caveat Emptor

    What is the source that you are looking at?
    Download OmniDiskSweeper and/or Grand Perspective and open it.  How does it compare with your MBP data?
    Ciao.

Maybe you are looking for