[ 
https://issues.apache.org/jira/browse/FLEX-34724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gareth Daniel Smith updated FLEX-34724:
---------------------------------------
    Description: 
When labelUnits on a DateTimeAxis is set to "milliseconds" then the axis labels 
are formatted like: "14:02:230123" The milliseconds are attached on to the end 
of the minutes, separated with a "0". This seems bizarre to me and I would be 
surprised if this is the intended behavior.

The expected behavior, for me, is for the labels to be formatted like 
"14:02:23.123" - i.e. with a "." separating the seconds and the milliseconds.

See the attached screenshot for an example of the weird behavior.

If someone from the Flex team can confirm this is something that should be 
changed, I can try and submit a patch. The pertaining code is in 
DateTimeAxis.formatMilliseconds(...) - it looks pretty weird to me anyway: it 
contains an if-branch that will always be taken, and some unnecessary string 
allocation.

  was:
When labelUnits on a DateTimeAxis is set to "milliseconds" then the axis labels 
are formatted like: "14:02:230123" The milliseconds are attached on to the end 
of the minutes, separated with a "0". This seems bizarre to me and I would be 
surprised if this is the intended behavior.

The expected behavior, for me, is for the labels to be formatted like 
"14:02:23.123" - i.e. with a "." separating the seconds and the milliseconds.

See the attached screenshot for an example of the weird behavior.

If someone from the Flex team can confirm this is something that should be 
changed, I can try and submit a patch.


> DateTimeAxis formats dates strangely when labelUnits is milliseconds
> --------------------------------------------------------------------
>
>                 Key: FLEX-34724
>                 URL: https://issues.apache.org/jira/browse/FLEX-34724
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Charts
>    Affects Versions: Apache Flex 4.13.0
>            Reporter: Gareth Daniel Smith
>            Priority: Minor
>         Attachments: weird-graph-label.png
>
>
> When labelUnits on a DateTimeAxis is set to "milliseconds" then the axis 
> labels are formatted like: "14:02:230123" The milliseconds are attached on to 
> the end of the minutes, separated with a "0". This seems bizarre to me and I 
> would be surprised if this is the intended behavior.
> The expected behavior, for me, is for the labels to be formatted like 
> "14:02:23.123" - i.e. with a "." separating the seconds and the milliseconds.
> See the attached screenshot for an example of the weird behavior.
> If someone from the Flex team can confirm this is something that should be 
> changed, I can try and submit a patch. The pertaining code is in 
> DateTimeAxis.formatMilliseconds(...) - it looks pretty weird to me anyway: it 
> contains an if-branch that will always be taken, and some unnecessary string 
> allocation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to