Using the dateTimeAxis

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Using the dateTimeAxis

    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>

    spacehog Guest

  2. Similar Questions and Discussions

    1. Problems with DateTimeAxis
      OK 1st problem: I have one "working" graph, the parser works everything is fine, except the data spans over 3 days with readings every hour. I...
    2. Help with DateTimeAxis
      well i dont know if your still having the problem but here is some help in the attached code is one of my parsers. that comes from the format...
    3. Problem on Chart with DateTimeAxis
      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...
  3. #2

    Default Re: Using the dateTimeAxis

    Found my answer. As long as the date is in a format of mm/dd/yy no formatting is needed
    spacehog Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139