1 Reply Latest reply on May 21, 2008 12:54 PM by spacehog

    Using the dateTimeAxis

    spacehog
      Do you always have to use a parseFunction with the dateTimeAxis (in a column chart)?

      I want to use the date I pull, via remote object, in the x axis. But, everytime I put the column name in as the xflied value no data renders. If I don't use an xfield value then my data displays as it is returned from the remote object:

      <mx:RemoteObject id="chartmth_RO" showBusyCursor="true" destination="ColdFusion" source="usagecenter_local.cfc.charts_usage_mth">
      <mx:method name="qMonthlyUsage" result="get_Result(event)"/>
      </mx:RemoteObject>

      <mx:Canvas width="100%" height="100%">
      <mx:VBox left="10" top="10" right="10" bottom="10">
      <mx:DataGrid width="100%" id="details" dataProvider="{flatDP}"/>
      <mx:ColumnChart id="usagechart1" height="95%" width="99%" dataProvider="{flatDP}" >
      <mx:horizontalAxis>
      <mx:DateTimeAxis dataUnits="days"/>
      </mx:horizontalAxis>
      <mx:series>
      <mx:ColumnSeries yField="ctLines" xField="sbbrvDT" />
      </mx:series>
      </mx:ColumnChart>
      </mx:VBox>
      </mx:Canvas>