Graph generation from XML in AS

Hi guys, long time, no see and all that. Just wanted to ask a question. I’m at work trying to create a graph from XML data. Now, that in itself is fine, I can load the data and I can get AS to draw the line with no problems. The real problem is the axes and their labels. Since each graph line is different, I’ve got it such that the y-axis scale (the small markers along it) changes according to the maximum value of the graph data (the x-axis is months, so remains static).

I’m trying to use a loop to create multiple textfields position along the line and vary the text contained within them depending on their position. So the position has to be dynamic (in itself, not hard) and the text has to be different according to where it is. This is hard, because loops don’t seem to generate more than one text field… they only make the last one.

Please help! Alternatively, if you can think of/know a better way to do this, please let me know!

Latest Version (remember to rename data.txt to data.xml)