954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

generation of score chart

Please look in the attachment.
The first chart shows the score vs contestant images(score wise ordered) graph generated simply using php.
BUT i need the second chart (bottom 1) where chart does not proceed down but only those images of contestants are brought to next line which are relatively very close to previous image (tht overlap can occur)
Table used consists of only
img_path(of contestant) and score.

while($row = mysql_fetch_array($result))
{
for($k=1;$k<=$row['score'];$k++)
echo "__";
}
echo '<img src="'.$row['img_path'].'.jpg" width=30 height=30 title="'.$row['img_path'].'.jpg SCORE='.$row['score'].'" alt="'.$row['img_path'].'.jpg SCORE='.$row['score'].'">';
echo "</BR>";
}

Attachments chart.jpg 23.22KB
solvesak
Newbie Poster
8 posts since Jun 2011
Reputation Points: 10
Solved Threads: 0
 

Seems like a crude way to go about it when there a plenty of free php graphing libraries.

Or even if you wish to use flash, free fusioncharts?

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

Please do not create multiple threads for your question.
Further discussion should be directed to the current thread here:
http://www.daniweb.com/web-development/php/threads/367875/1579675#post1579675

Closing.

Ezzaral
Posting Genius
Moderator
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: