in reply to Re: number scaling ?
in thread number scaling ?

Last November I was working on a project for which the client had stated in the spec that all graphs had to be generated using the Google Chart API, which does not scale the graph automatically (or at least it didn't at that time), so I needed to work up something of my own to determine an appropriate range1 and then map the displayed values into 0-100% of that range.

Which is not necessarily to say that AnonyMonk shouldn't be using one of the many CPAN graphing modules which will handle these details for him (I'm partial to GD::Graph, myself), but it is possible that he may have a legitimate need to do this.

1 0-6000 tends to go over better with end users than 3407.21-5296.37, so it's not just a matter of taking your minimum and maximum values as "0" and "100".

Replies are listed 'Best First'.
Re^3: number scaling ?
by salazar (Scribe) on Mar 13, 2009 at 00:49 UTC
    [I] need to convert all of my data to a scale from 0 to 100