Hi,

I've created a small script to do bar-graphs for a period ofd 1 week
(1 number per day...)


Ive got 5 days worth of data now - & in a few days the 1st day (inly
partial data so its a lot lower in volume than the rest...)

The problem, is that in a few days, i'm going to have (virtually) a
straight-line with little movement in the bar-graph heights....

BACKGROUND TO CALCULATION :-

basically ive got this...

$maxnumber
$minnumber

$val=((($value-$minnumber)/$value)*100);

QUERY...

I thought of that while I was at work today - (ive got home now - will
test.. & think of something )
The above formulae does work in theory however the lowest value will
always be at 0% of the graph

Is there a small calculation, so the lowest value for the week will be
at 10% of the graph, & the other values will be relative to the
figures ? (Ie you can easily see the differences..)


-- 
G
NZ community groups - [EMAIL PROTECTED]
Freecycle Auckland :-
http://groups.yahoo.com/group/AucklandFreecycle/

Reply via email to