AxisConfig

interface AxisConfig : Font, Stroke, TickConfig

The configuration interface for an axis.

Functions

smartTickCount
Link copied to clipboard
common
abstract fun smartTickCount(rangeSize: Double): Int
Compute a "smart" tick count for the given scale.

Properties

alternateBackgroundColor
Link copied to clipboard
common
abstract var alternateBackgroundColor: Color
The color of the alternate background bands.
autoFit
Link copied to clipboard
common
abstract var autoFit: Boolean
When autofit is enabled, the start and end of the axis is rounded to "nice values".
axisLabelLayout
Link copied to clipboard
common
abstract var axisLabelLayout: AxisLabelLayout
Layout of the ticks labels over the axis line (below, over...).
bandwidthRatio
Link copied to clipboard
common
abstract var bandwidthRatio: Percent
The ratio of the drawable zone on a discrete axis.
discreteTickSkip
Link copied to clipboard
common
abstract var discreteTickSkip: TickSkip
Tick-sipping behavior for a discrete axis.
enableAlternateBackground
Link copied to clipboard
common
abstract var enableAlternateBackground: Boolean
Show hide alternate background (colored bands, drawn on ticks under the Marks).
enableAxis
Link copied to clipboard
common
abstract var enableAxis: Boolean
Show or hide the whole axis component.
enableAxisLine
Link copied to clipboard
common
abstract var enableAxisLine: Boolean
Show or hide the axis line.
enableBandwidth
Link copied to clipboard
common
abstract var enableBandwidth: Bandwidth
Enable bandwith.
enableGridLines
Link copied to clipboard
common
abstract var enableGridLines: Boolean
Show hide gridlines (lines drawn on ticks under the Marks).
enableTicks
Link copied to clipboard
common
abstract var enableTicks: Boolean
Show or hide the axis ticks.
enableTicksLabels
Link copied to clipboard
common
abstract var enableTicksLabels: Boolean
Show or hide the axis ticks labels.
enableTitle
Link copied to clipboard
common
abstract var enableTitle: Boolean
Show / hide axis title.
fontColor
Link copied to clipboard
common
abstract var fontColor: Color
The font Color.
fontFamily
Link copied to clipboard
common
abstract var fontFamily: FontFamily
The font family (FontFamily).
fontSize
Link copied to clipboard
common
abstract var fontSize: Double
The font size.
fontStyle
Link copied to clipboard
common
abstract var fontStyle: FontPosture
The font posture (FontPosture): italic or normal.
fontWeight
Link copied to clipboard
common
abstract var fontWeight: FontWeight
The font weight (FontWeight): bold or normal.
gridLinesColor
Link copied to clipboard
common
abstract var gridLinesColor: Color
The color used to draw the grid lines.
gridLinesDashed
Link copied to clipboard
common
abstract var gridLinesDashed: DoubleArray?
The "dash style" of the grid lines, use null for a solid line.
gridLinesWidth
Link copied to clipboard
common
abstract var gridLinesWidth: Double
The thickness of the grid lines.
layoutPosition
Link copied to clipboard
common
abstract var layoutPosition: LayoutPosition
Expected position for the axis relative to the main charting zone.
orientation
Link copied to clipboard
common
abstract val orientation: Orientation
The Orientation of this axis configuration.
strokeColor
Link copied to clipboard
common
abstract var strokeColor: Color?
The stroke Color, use null for no stroke.
strokeWidth
Link copied to clipboard
common
abstract var strokeWidth: Double?
The stroke thickness, null for no stroke.
tickCount
Link copied to clipboard
common
abstract var tickCount: Int?
The expected tick count for the Axis, null for activating "smart tick count".
tickPadding
Link copied to clipboard
common
abstract var tickPadding: Double
The padding between the tick and its label.
tickSize
Link copied to clipboard
common
abstract var tickSize: Double
The size (length) of a tick.
tickStroke
Link copied to clipboard
common
abstract var tickStroke: Color?
The ticks stroke Color, if null ticks won't draw.
tickStrokeWidth
Link copied to clipboard
common
abstract var tickStrokeWidth: Double?
The ticks stroke thickness, if null ticks won't draw.

Inheritors

Axis
Link copied to clipboard