3 Replies Latest reply on Sep 22, 2006 10:15 AM by ntsiii

    Problem on Chart  with DateTimeAxis

    FredFlex Level 1
      Hello,

      I don't understand why showed data are one or more day delayed :
      for 'foo1' first data is show on 02/28 (datasource = 03/01) and second data is show on 03/02 (datasource = 03/03) etc...

      <?xml version="1.0"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" backgroundColor="#FFFFFF">

      <mx:Script>
      <![CDATA[

      private var dp:Array =
      [
      [
      {time: '03/01/2006', foo1:39 },
      {time: '03/03/2006', foo1:35 },
      {time: '03/06/2006', foo1:41 }
      ],
      [
      {time: '03/01/2006', foo2:39 },
      {time: '03/05/2006', foo2:39 }
      ]
      ];

      ]]>
      </mx:Script>

      <mx: Panel title="test Linechart" height="100%" width="100%">
      <mx:HBox height="100%" width="100%">
      <mx:LineChart id="lin" paddingLeft="5" height="100%"
      width="45%" paddingRight="5" showDataTips="true">
      <mx:horizontalAxis>
      <mx: DateTimeAxis dataUnits="days"/>
      </mx:horizontalAxis>
      <mx:series>
      <mx:Array>
      <mx:LineSeries yField="foo1" xField="time" dataProvider="{dp[0]}" displayName="foo1"/>
      <mx:LineSeries yField="foo2" xField="time" dataProvider="{dp[1]}" displayName="foo2"/>
      </mx:Array>
      </mx:series>
      </mx:LineChart>
      </mx:HBox>
      </mx: Panel>
      </mx:Application>

      Why?

      Thanks

      FredFlex