Angular Value Axis Model
data class AngularValueAxisModel(tickValues: List<AngularValue> = buildList {
@Suppress("MagicNumber")
for (i in 0..<8) {
add((PI * i / 4.0).rad)
}
}, val angleDirection: AngularAxisModel.AngleDirection = AngularAxisModel.AngleDirection.COUNTERCLOCKWISE, val angleZero: AngularAxisModel.AngleZero = AngularAxisModel.AngleZero.THREE_OCLOCK) : AngularAxisModel<AngularValue>
An AngularAxisModel that uses AngularValues of either Radians or Degrees.
Parameters
tick Values
The angular value of each tick that should be drawn on the plot.
Constructors
Link copied to clipboard
constructor(tickValues: List<AngularValue> = buildList {
@Suppress("MagicNumber")
for (i in 0..<8) {
add((PI * i / 4.0).rad)
}
}, angleDirection: AngularAxisModel.AngleDirection = AngularAxisModel.AngleDirection.COUNTERCLOCKWISE, angleZero: AngularAxisModel.AngleZero = AngularAxisModel.AngleZero.THREE_OCLOCK)
Properties
Functions
Link copied to clipboard
Computes the angular offset of the provided point along this axis. This function provides a mechanism to transform from arbitrary units T to angular units on the plot. For example, a category axis can convert specific categories to their angular position on the plot.
Link copied to clipboard
Gets the tick values for this axis model.