History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: FLEXDMV-1108
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: C C
Assignee: Ajit Gosavi
Reporter: Ryan Phelan
Votes: 2
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Flex Data Visualization Components

DateTimeAxis displays last day of month rather than first when labelFunction is specified

Created: 07/26/07 10:17 AM   Updated: 01/28/08 02:17 AM
Component/s: Charts
Security Level: Public (All JIRA Users )

File Attachments: 1. File dateTimeAxis Error.mxml (2 kb)

Image Attachments:

1. dateTimeAxis Error.jpg
(44 kb)

Severity: Incorrectly Functioning
Reproducibility: Every Time
Discoverability: Low
Found in Version: M2_Moxie (Released)
Affected OS(s): Windows - XP
Steps to Reproduce:
Steps to reproduce:
1. Create a line chart with a DateTimeAxis
2. Set alignLabelsToUnits to true and autoAdjust to false on the DateTimeAxis
3. Have category names in the dataProvider be something like: "3/4/2007", "4/8/2007", "5/13/2007", etc.
4. Use a labelFunction with the DateTimeAxis that shows months and days

(I have also attached a sample application)
 
 Actual Results: Dates on the DateTimeAxis are labeled one day prior to what they should be. eg. the label that should say "April 1, 2007" says "March 31, 2007"
 
 
 Expected Results: Each tick on the DateTimeAxis should represent the beginning of a month
 
 
 Workaround (if any): The problem is in the roundDateUp function of DateTimeAxis. I changed it to create a new date rather than modify the one passed in and that fixed the problem... but who wants to have to modify the built in components to fix a bug? Try outputting the result of the roundDateUp function! It is not always successful.
 
 
 
Language Found: English
Bugbase Id: none
Regression: No
QA Owner: Ajit Gosavi
Resolved by: Sangavi Gururaghavendran
Participants: Ajit Gosavi, Ryan Phelan and Sangavi Gururaghavendran


 All   Comments      Sort Order:
Ryan Phelan - [07/26/07 10:21 AM ]
Note how the tool tip is correct, making it out of sequence with the axis label

Ajit Gosavi - [07/27/07 02:10 AM ]
can you check this?

Sangavi Gururaghavendran - [07/30/07 12:53 AM ]
The axis labels are as expected. The first date of the month is rendered in the chart.