I wrote a script to get the count of particular occurances per month. Now I'd like to build a bar chart and convert each number into % of the bar.
What I'd like to do is also use the largest number as 100%. How do I do that?
Here's what I've got so far:
$stats= $db->get_results (" query ");
foreach ($stats as $st)
{
echo "<td>".$st->COUNT."</td>";
}
So how do I tell the largest value in the loop? It's been a long day and my brain is totally flat...