I have a question about the ColumnChart in Flex 3. a simple ColumnChart is like:
<mx:horizontalAxis>
<mx:CategoryAxis
dataProvider="{myDP}"
categoryField="date"
/>
</mx:horizontalAxis>
<mx:series>
<mx:ColumnSeries
xField="date"
yField="Expense"
displayName="Expense"
/>
<mx:ColumnSeries
xField="date"
yField="Income"
displayName="Income"
/>
</mx:series>
But how to make a ColumnChart with dynamic number of columns which come from the dataprovider? Here the columns for "expense" and "income" are hardcoded. But how can we do if they come from the dataprovider, and number is not fixed, for example, yFields can be "expense 1", "expense 2", ... "Income 1", "Income 2", ...etc.