Axis
open class Axis<DOMAIN, VALUE>(data: List<Datum<DOMAIN>>, dimension: Dimension<DOMAIN, VALUE>, config: AxisConfig) : Scaler<VALUE> , AxisConfig
Content copied to clipboard
The core "axis" component for a given Mark.
Generally, a Chart will have several Dimensions that can be shared between the different Marks, the Axis is the concrete use of a Dimension for a given Mark.
See also
AxisRenderer
The visual part of the axis component.
Constructors
Functions
getPosition
Link copied to clipboard
scaleValue
Link copied to clipboard
smartTickCount
Link copied to clipboard
Properties
alternateBackgroundColor
Link copied to clipboard
The color of the alternate background bands.
axisLabelLayout
Link copied to clipboard
Layout of the ticks labels over the axis line (below, over...).
bandwidthRatio
Link copied to clipboard
Changing the bandwidth must launch a rescale
config
Link copied to clipboard
The AxisConfig of this Axis
discreteTickSkip
Link copied to clipboard
Tick-sipping behavior for a discrete axis.
enableAlternateBackground
Link copied to clipboard
Show hide alternate background (colored bands, drawn on ticks under the Marks).
enableAxis
Link copied to clipboard
Show or hide the whole axis component.
enableAxisLine
Link copied to clipboard
Show or hide the axis line.
enableBandwidth
Link copied to clipboard
Changing the "pointAxis" must launch a rescale
enableGridLines
Link copied to clipboard
Show hide gridlines (lines drawn on ticks under the Marks).
enableTicks
Link copied to clipboard
Show or hide the axis ticks.
enableTicksLabels
Link copied to clipboard
Show or hide the axis ticks labels.
enableTitle
Link copied to clipboard
Show / hide axis title.
fontFamily
Link copied to clipboard
The font family (FontFamily).
fontWeight
Link copied to clipboard
The font weight (FontWeight): bold or normal.
gridLinesColor
Link copied to clipboard
The color used to draw the grid lines.
gridLinesDashed
Link copied to clipboard
The "dash style" of the grid lines, use null for a solid line.
gridLinesWidth
Link copied to clipboard
The thickness of the grid lines.
layoutPosition
Link copied to clipboard
Expected position for the axis relative to the main charting zone.
orientation
Link copied to clipboard
The Orientation of this axis configuration.
renderer
Link copied to clipboard
This axis renderer, use DefaultAxisRenderer by default but you can specify your own custom AxisRenderer.
strokeColor
Link copied to clipboard
The stroke Color, use null for no stroke.
strokeWidth
Link copied to clipboard
The stroke thickness, null for no stroke.
tickPadding
Link copied to clipboard
The padding between the tick and its label.
tickStroke
Link copied to clipboard
The ticks stroke Color, if null ticks won't draw.
tickStrokeWidth
Link copied to clipboard
The ticks stroke thickness, if null ticks won't draw.
tickValues
Link copied to clipboard
Produces a List of VALUE that will be used to place "ticks" on an axis.