Sorry - a little more info. PHP/SWF is a tool to create flash charts available from http://www.maani.us/charts/index.php. I don't particularly care what format the charts are, this just looked like a clean way to do it.
There isn't much to the code that calls the chart. The charts themselves are basically built by changing various parameters in a multi-dim array called $chart. To add data you create a multidimensional array and add it to $chart['Chart_data']. The tutorial basically says to take your data and organize it in a table and then create a corresponding multi-dim array.
Static data looks like this:
$chart [ 'chart_data' ] = array ( array ( "", "2001", "2002", "2003", "2004" ),
array ( "Region A", 5, 10, 30, 63 ),
array ( "Region B", 100, 20, 65, 55 ),
array ( "Region C", 56, 21, 5, 90 )
);
I've already got the data from my query in an array which I use to populate a table that has the format: Part #/ Description / Qty / Type. I want to graph the quantity corresponding to each part#. There may be 1-10+ part numbers depending on the query.