I've generated a dynamic graph based off of the data from my MySQL db, and now I'm looking to see if there is a way that GD or one of its packages allows you to add the values of what each bar is above that bar. Basically the data is very specific, numbers like 3.45, 1.23, 10.1, etc... and it would be best if the user viewing the graph could both view its value generally, and exactly.
So has anybody done this? Also let me know if more information is needed.
Thanks! :)
[Edit]: Using GD::Graph::bars only right now.
Not sure what parts of my code to show but here are my arrays that pull the data from my DB to show on the graph. All of the GD::Graphic coding or HTML coding I use is standard:
while (my @results = $sth->fetchrow_array) {
push @res_sample, $results[1];
push @res_value, $results[0];
}
my @data = (
[@res_sample],
[@res_value],
);