A continuous linear scale that maps a numeric domain to a numeric range.
Linear scales are the most common scale type, useful for quantitative data.
Summary
Functions
Applies the scale to a value
Returns 0: a linear scale has no bandwidth
Enables or disables clamping
Sets the domain
Inverts the scale
Creates a new linear scale
Extends domain to nice round values
Identity: a linear scale has no padding
Sets the range
Generates tick values
Types
Functions
Applies the scale to a value
@spec bandwidth(t()) :: 0
Returns 0: a linear scale has no bandwidth
Enables or disables clamping
Sets the domain
Inverts the scale
@spec new() :: t()
Creates a new linear scale
Extends domain to nice round values
Identity: a linear scale has no padding
Sets the range
Generates tick values