g.scale.linear(domain, range, value)
Return the value
from the domain
interval linearly scaled to the range
interval. Both domain
and range
intervals must be specified as arrays with two numbers specifying start and end of the interval.