Draw chart
Moderator: General Moderators
Draw chart
Let say I have data about student's mark in several subjects. If I want to represent that data (eg. english=82, math=91) using chart (eg. bar chart) in my page, what is the best way to do it? I mean how can I draw chart using that data?
yeah take a look at jpgraph, its a really nice little tool.
its easy to use even though the documentation may seem intimidating.
but if all you need to do is very basic bar charts, its pretty easy to do it yourself with just html
its easy to use even though the documentation may seem intimidating.
but if all you need to do is very basic bar charts, its pretty easy to do it yourself with just html
Code: Select all
<table style="border: 1px solid #000;">
<tr>
<td>Math score</td>
<td><div style="width: <?php echo $math_score; ?>px; background-color: orange;"></div></td>
</tr>
<tr>
<td>English score</td>
<td><div style="width: <?php echo $eng_score; ?>px; background-color: blue;"></div></td>
</tr>
</table>