linearscale
Linearscale is a concept used in data visualization and measurement to describe a scale that maps an input domain to an output range using a linear transformation. In this approach, equal changes in the input produce equal changes in the output, so distances on the visualization correspond directly to data differences. The relationship is typically an affine transformation of the form y = a x + b, where a sets the slope and b an offset.
Key properties include order preservation and uniform spacing: if the input values are evenly spaced, the resulting
Common applications include plotting numerical data on linear axes, where a unit change in the data equals
Implementation typically involves defining a domain [min, max] and a range [start, end], then computing a normalized