0 Replies Latest reply on Mar 2, 2007 5:08 PM by Russ Y

    Time shifted in Line chart with DateTimeAxis

    Russ Y
      I am using a linechart that pulls data from a cfc. I'm trying to use DateTimeAxis to display the xaxis labels in 1 hour intervals in a 24 hour period. The data is plotted every 10 minutes in a 24 hour period. The problem I am having is that the time is shifted. The first label should read 0:00 but instead reads 8:00, and continues until 7:00. The first plot reads 2.11 at 8:00. This should read 2.11 at 0:00. The Hour field coming in contains only time and not date, so the default date is assigned: {ts '1899-12-30 00:00:00'}, {ts '1899-12-30 00:10:00'}, etc. Does anyone know why the time is being shifted?


      <mx:LineChart id="linechart" dataProvider="{query}" showDataTips="true" width="100%" height="100%">

      <mx:horizontalAxis>
      <mx:DateTimeAxis labelUnits="hours" title="Clock Hour" interval="1" />
      </mx:horizontalAxis>

      <mx:series>
      <mx:LineSeries yField="A" xField="Hour" form="segment" displayName="A"/>
      <mx:LineSeries yField="B" xField="Hour" form="segment" displayName="B"/>
      <mx:LineSeries yField="C" xField="Hour" form="segment" displayName="C"/>
      <mx:LineSeries yField="D" xField="Hour" form="segment" displayName="D"/>
      </mx:series>

      </mx:LineChart>

      Thanks, Russ