Apr
20
2010
My main job is to develop Flex applications of Finance Chart, so I'm very concerned about the Flex Chart, recently I met a problem when upgraded a Flex Chart application with Flex 4.
if set the labelUnits of DateTimeAxis to months, and compiler it with Flex 4 , the labels of the chart will be displayed by date in descending order; compiler it with Flex 3, there is no problem. This is a bug of Flex 4, see http://bugs.adobe.com/jira/browse/FLEXDMV-2344.
In Flex 4, DateTimeAxis class and its parent class NumericAxis add a new property: direction, which makes DateTimeAxis label can be shown by date in ascending or descending order.
But we can't solve this Bug even we use direction property, the solusion is overriding buildLabelCache () method in DateTimeAxis' child class, or setting disabledDays or disabledRanges property.
原文:http://www.riafan.com/article/flex/flex-4-datetimeaxis.html