incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maurice Amsellem (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-32919) Issue is with the mx.charts.DateTimeAxis class
Date Thu, 15 Nov 2012 11:18:15 GMT

    [ https://issues.apache.org/jira/browse/FLEX-32919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497942#comment-13497942
] 

Maurice Amsellem commented on FLEX-32919:
-----------------------------------------

It looks like this issue has been already fixed (see below) .
Shall we mark it as resolved ?

cf. http://svn.apache.org/repos/asf/incubator/flex/sdk/trunk/frameworks/projects/charts/src/mx/charts/DateTimeAxis.as
line 1513:

{code}
                   else
                        if(direction == "inverted")
                            labelCache.push(new AxisLabel(
                                1 - (dTime - computedMinimum) / r, new Date(dTime),
                                lfunc(labelDate, previousValue, this)));
                        else
                            labelCache.push(new AxisLabel(
    ==>                            (dTime - computedMinimum) / r, new Date(dTime),
                                lfunc(labelDate, previousValue, this)));
{code}



                
> Issue is with the mx.charts.DateTimeAxis class
> ----------------------------------------------
>
>                 Key: FLEX-32919
>                 URL: https://issues.apache.org/jira/browse/FLEX-32919
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Charts
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>
> Steps to reproduce:
> 1. Please add DateTimeAxis in any chart component and add min and max range to the month
like min is nov,2010 and max is jan 2011 and set the direction as normal
> 2. Check the labels. It will reverted in the descending order but the behavior should
be like it should show in ascending order. 
> 3. The code which has issue is as follows inside the buildLabelCache() method of the
class. For non inverted option as well in the else part is also treated as inverted one.
> if(direction == "inverted")
>                     		labelCache.push(new AxisLabel(
>                             	1 - (dTime - computedMinimum) / r, new Date(dTime),
>                             	lfunc(labelDate, previousValue, this)));
>                         else
>                         	labelCache.push(new AxisLabel(
>                             	1 - (dTime - computedMinimum) / r, new Date(dTime),
>                         		lfunc(labelDate, previousValue, this)));
> So the correction should be in the else part the code should be like the following.
> labelCache.push(new AxisLabel(
>                             	(dTime - computedMinimum) / r, new Date(dTime),
>                         		lfunc(labelDate, previousValue, this)));
>  
>  Actual Results: Labels are displayed in the descending order 
>  
>  
>  Expected Results: Labels should come as ascending for the dates.
>  
>  
>  Workaround (if any): If we can fix the code and rebuild the flex which right now i am
not knowing how to do it but i will figure out soon as i am seeing ant build scripts and i
have a experience with the same.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message