Reply To: FireStats – Top 40 php script (now with added charts)

#14752
sonichouse
Participant

Well Vista can pre-installed on my Flybook v33i laptop.
Great machine for the road warrior in me 😀

Anyway, new version 1.13 fixes the bar charts so that the y axis always gets the correct axis label range.

>           // v1.13 - Fix up Max Scale so chart is not clipped
> // Round up to nearest 100 or 10 whole number
> if(BAR==$graph)
> {
> if($maxScale > 1000)
> $maxScale += (100 - ($maxScale % 100));
> elseif($maxScale > 100)
> $maxScale += (10 - ($maxScale % 10));
> }
>

/Steve