If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Need Help Understanding dataFunction

I'm confused as to how the dataFunction method works. Namely, I don't understand how to call the dataFunction. Here is my chart data, in the array named 'arrayOne'. I want the x-axis to populate with the 'day' items and I want stacked columns where each stacked column is the 'wip' item in a 'type' property. This would allow me to see the amount of wip corresponding to each part type on every day.

In my init() function I have an arrayCollection called 'allSeries' that I'm using to create checkboxes for each part type. Since this array contains a list of all part types I would also like to use it to make a chart series for every element in the array. So I have a call to a function called 'updateChartSeries' that is defined to populate my column chart series with the elements of 'allSeries'.

The 'updateChartSeries' function is below. It takes an arrayCollection as a parameter, such as 'allSeries', and is suppose to create a column series for each element of the passed in arrayCollection. To do this it needs to recognize the part type name from my dataprovider table ('arrayOne') and assign the corresponding wip value as the column series yField. That's what I can't figure out how to do.