ContinuousAxis

Represents an axis over a continuous scale. Generally, this is applied to a drawing by calling Selection.call on a selection of a single GroupElement or TransformElement. Mutating style properties like tickCount should not happen concurrently with calls to applySelection or Selection.call.

TODO: Axis should support scales other than ContinuousScale, but since we don't have other scales yet...

Properties

Link copied to clipboard
var font: Font

Font used when drawing tick labels.

Link copied to clipboard
var formatter: (D) -> String

Formatter for converting from the domain values to tick labels. This defaults to Any.toString.

Link copied to clipboard

Line color used when drawing tick lines & domain path.

Link copied to clipboard

Line width used when drawing tick lines & domain path.

Link copied to clipboard

Text color used when drawing tick labels.

Link copied to clipboard

Text size used when drawing tick labels.

Link copied to clipboard

Desired approximate number of ticks. This might not be the exact number actually used if a nearby number would produce nicer ticks.

Link copied to clipboard

Padding between tick lines and tick labels.

Link copied to clipboard

Length of the tick lines drawn from the axis, for each tick.

Link copied to clipboard

Length of the tick lines drawn from the axis, for the squared ends of the domain path.

Functions

Link copied to clipboard
fun applySelection(selection: Selection<*, *>)