An additional linear scale to apply pan/zoom interactions to the category scale. Pan/zoom requires a numerically invertable scale.
This adds an intermediate coordinate space called the Transformation Space. The conversion from data to screen coordinates is as follows:
Data Space -> _d3Scale -> Transformation Space -> _d3TransformationScale -> Screen Space.
The Transformation Space coordinates are initialized to [0, 1].
Notably, range band calculations are internally computed in
Transformation Space and transformed to screen space in methods like
rangeBand()
and stepWidth()
.
Converts a width or height in Transformation Space into Screen Space.
Adds an IncludedValuesProvider to the Scale.
Sets the Scale's domain so that it spans the Extents of all its ExtentsProviders.
Gets the inner padding.
The inner padding is defined as the padding in between bands on the scale, expressed as a multiple of the rangeBand().
Sets the inner padding.
The inner padding is defined as the padding in between bands on the scale, expressed as a multiple of the rangeBand().
Removes a callback that would be called when the Scale updates.
Adds a callback to be called when the Scale updates.
Gets the outer padding.
The outer padding is the padding in between the outer bands and the edges of the range, expressed as a multiple of the rangeBand().
Sets the outer padding.
The outer padding is the padding in between the outer bands and the edges of the range, expressed as a multiple of the rangeBand().
Returns the width of the range band.
The range band width
Removes the IncludedValuesProvider from the Scale.
Returns the step width of the scale.
The step width is the pixel distance between adjacent values in the domain.
Generated using TypeDoc
A Category Scale maps strings to numbers.