Skip to main content

scale

Functions

linear()

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.

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub