Help with creating a bar chart from variables

I am need to create a bar chart created by variables from a calculation.

I am looking for info on this, and not quite sure where to start. I see tutorials for creating one from an external file, asp, or xml. Is there a specific reason for this, should i write an external file first and then load them into flash for the chart.

Or should/can I just use the variables that are created internally?