LinearScale

extends:
Jump To: Members

A linear scale is the default and most typical type of scale. It deals exclusively with scaling a number input to a number output.

Examples:

Create a scaling function that scales an input from the range 0,1000 to 0-5 var scale = thinkmap.scale.linear().inputs(0,1000).outputs(0,5); scale(200); // returns 1 scale(100); // returns .5 scale(1000); // returns 5 scale(500); // returns 2.5

Instance Methods