flex4 - Flex DateTimeAxis Duplicate Axis Label Values -


this simple code results in november 7th in 2 places on horizontal datetimeaxis:

<mx:application          xmlns:mx="http://www.adobe.com/2006/mxml">      <mx:script>         <![cdata[             import mx.charts.series.lineseries;             import mx.collections.arraycollection;              [bindable]             public var ac:arraycollection = new arraycollection(                 [                     {completions: "11636", date: new date(2010, 10, 7)},                      {completions: "33060", date: new date(2010, 10, 8)},                  ]);         ]]>     </mx:script>      <mx:panel title="bar chart">         <mx:barchart id="mychart"                        dataprovider="{ac}">             <mx:horizontalaxis>                 <mx:datetimeaxis dataunits="days"                                   displaylocaltime="true"/>             </mx:horizontalaxis>             <mx:series>                 <mx:lineseries xfield="date" yfield="completions"/>             </mx:series>         </mx:barchart>     </mx:panel> </mx:application> 

change dates november 8th , 9th , good....

anyone have ideas how fix this?

it looks has utc time fixes it:

<mx:datetimeaxis dataunits="days" displaylocaltime="true" labelfunction="formatdate"/>  public function formatdate(value:date, prev:date, axis:iaxis):string {     return dateformatter.format(new date(value.fullyear, value.month, value.dateutc)); } 

but, i'd rather not this...


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -