I am trying to build a chart to display the Long Distance used out of total
allocated minutes.
I have a Bar Chart and an array. If I want to display the minutes used without
showing the total minutes, everything is fine and dandy. But when I add the
mx:LinearAxis maximum = 6000 line, the chart does not populate.
What am I missing?
Here is the code:
[Bindable]
public var LD_minutes:ArrayCollection = new ArrayCollection([
{longDistance:"minutes Used", used:48060}
]);
<mx:Panel title="Bar Chart" y="567" x="29" height="368" width="901">
<mx:BarChart id="myChart" dataProvider="{LD_minutes}" showDataTips="true"
height="245" width="799">
<mx:verticalAxis>
<mx:CategoryAxis dataProvider="{LD_minutes}" categoryField="longDistance" />
</mx:verticalAxis>
<mx:horizontalAxis>
<mx:LinearAxis maximum="6000"/>
</mx:horizontalAxis>
<mx:series>
<mx:BarSeries yField="longDistance" xField="used" displayName="minutes used"/>
</mx:series>
</mx:BarChart>
</mx:Panel>
Eric W Dunn
Adaption Technologies
281-465-3326
[email protected]