in reply to Parsing an SQL table using an array of hashes?

An appropriate data structure would be


you could also go for


Now what is the real question?

How to get the input from SQL or how to get the output to GD::Graph ?

Cheers Rolf

(addicted to the Perl Programming Language)