Appearance
PolarInterpolator
PolarInterpolator
can be used either as a composable or a renderless component. It is responsible for for coming up with the mapping of x/y data values into screen coordinates where the origin is a pole.
Props
name | type | default | required | description |
---|---|---|---|---|
angleDomain | Domain | N/A | 🗹 | the domain of values to spread over the angles of this plot |
magnitudeDomain | Domain | N/A | 🗹 | the domain of values to spread over the magnitude of this plot (center to edge) |
endDistanceRatio | number | 1 | ☐ | how far this interpolator should go down the available radius, 1 means end of radius |
perimeterRatio | number | 1 | ☐ | how much of the circle's perimeter to use. 1 means all of it |
startDistanceRatio | number | 0 | ☐ | where this interpolator should begin on the radius, 0 means at the origin, 1 means at the end of the radius |
Slots
default
prop | type | comment |
---|---|---|
center | Point | center of the pole in screen space |
radiusMin | number | notes |
radiusMax | number | notes |
perimeter | number | length of perimeter in pixels |
perimeterRatio | number | 1 = full circle, .25 = quarter circle |
angleScaler | LinearScaler | scaler interface for turning screen coords into angles on the plot |
magnitudeScaler | LinearScaler | scaler interface for turning screen coords into magnitude on the plot |
cartesianScaler | CartesianScaler | scaler that scales data-space points into {x:angle, y:magnitude} |