views:

350

answers:

1
A: 

Hey,

try to add it with MXML like so:

<mx:ColumnChart id="chart" dataProvider="{QUANTITY}">
 <mx:horizontalAxis>
       <mx:CategoryAxis 
            dataProvider="{QUANTITY}" 
            categoryField="date"
        />
 </mx:horizontalAxis>
</mx:ColumnChart>

This worked for me... Ladislav

Ladislav
Yes, it works for me too. But there is a lot of other action script code associated and it will take time to convert to mxml.Also, the actions script closely resembles this.Still cannot make out why the mxml works and not as3.
Shah Al
Have you tryed adding horizontalAxisDateRenderer.horizontal = trueThis would indicate that it is a horizontal axis rather than vertical one.Seems to me that vertical is default...more on this on Adobe Flex page:http://livedocs.adobe.com/flex/3/langref/mx/charts/AxisRenderer.html
Ladislav
That was the final line needed . No other change . Thank you.Out of curiosity, why doesn't the property get set automatically when we push it into horizontalrenderes?
Shah Al
That is a good question, and I would not know the answer to that one..Glad that it finally worked for you
Ladislav