Axis

class Axis : Scheme

Axis scheme

Constructors

Axis
Link copied to clipboard
common
fun Axis()

Types

Companion
Link copied to clipboard
common
object Companion : SchemeSpec<Axis>

Functions

getItem
Link copied to clipboard
common
open override fun getItem(name: Name): MetaItem?
onChange
Link copied to clipboard
common
open override fun onChange(owner: Any?, action: (Name, MetaItem?, MetaItem?) -> Unit)
range
Link copied to clipboard
common
fun range(value: ClosedFloatingPointRange<Double>)
Set range using double kotlin range
fun range(value: ClosedRange<String>)
Set range using kotlin string range
fun range(from: Value, to: Value)
Set the range using arbitrary values
removeListener
Link copied to clipboard
common
open override fun removeListener(owner: Any?)
setItem
Link copied to clipboard
common
open override fun setItem(name: Name, item: MetaItem?)
tickfont
Link copied to clipboard
common
fun tickfont(block: Font.() -> Unit)
ticktext
Link copied to clipboard
common
fun ticktext(array: Iterable<Any>)
tickvals
Link copied to clipboard
common
fun tickvals(array: Iterable<Any>)
title
Link copied to clipboard
common
fun title(block: Title.() -> Unit)
toMeta
Link copied to clipboard
common
open override fun toMeta(): Laminate
validateItem
Link copied to clipboard
common
open fun validateItem(name: Name, item: MetaItem?): Boolean

Properties

anchor
Link copied to clipboard
common
var anchor: String?
Enumerated, one of ( "free" | "/^x(2-9|0-9+)?
automargin
Link copied to clipboard
common
var automargin: Boolean?
Determines whether long tick labels automatically grow the figure margins.
autorange
Link copied to clipboard
common
var autorange: Boolean
Determines whether or not the range of this axis is computed in relation to the input data.
autotick
Link copied to clipboard
common
var autotick: Boolean?
color
Link copied to clipboard
common
val color: Color
Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors.
defaultLayer
Link copied to clipboard
common
open val defaultLayer: Meta
descriptor
Link copied to clipboard
common
override var descriptor: NodeDescriptor?
dtick
Link copied to clipboard
common
var dtick: Value?
Sets the step in-between ticks on this axis.
gridcolor
Link copied to clipboard
common
val gridcolor: Color
Sets the color of the grid lines.
gridwidth
Link copied to clipboard
common
var gridwidth: Number
Sets the width (in px) of the grid lines.
linecolor
Link copied to clipboard
common
val linecolor: Color
Sets the axis line color.
linewidth
Link copied to clipboard
common
var linewidth: Number
Sets the width (in px) of the axis line.
position
Link copied to clipboard
common
var position: Number
Sets the position of this axis in the plotting space (in normalized coordinates).
range
Link copied to clipboard
common
var range: ClosedFloatingPointRange<Double>?
Sets the range of this axis.
showgrid
Link copied to clipboard
common
var showgrid: Boolean?
Determines whether or not grid lines are drawn.
showline
Link copied to clipboard
common
var showline: Boolean?
Determines whether or not a line bounding this axis is drawn.
showticklabels
Link copied to clipboard
common
var showticklabels: Boolean?
Determines whether or not the tick labels are drawn.
tickangle
Link copied to clipboard
common
var tickangle: Number
Sets the angle of the tick labels with respect to the horizontal.
tickcolor
Link copied to clipboard
common
val tickcolor: Color
Sets the tick color.
tickfont
Link copied to clipboard
common
var tickfont: Font
Sets the tick font.
ticklen
Link copied to clipboard
common
var ticklen: Number
Sets the tick length (in px).
tickmode
Link copied to clipboard
common
var tickmode: TickMode
Sets the tick mode for this axis.
ticks
Link copied to clipboard
common
var ticks: Ticks
Determines whether ticks are drawn or not.
ticktext
Link copied to clipboard
common
var ticktext: List<Value>
Sets the text displayed at the ticks position via tickvals.
tickvals
Link copied to clipboard
common
var tickvals: List<Value>
Sets the values at which ticks on this axis appear.
tickwidth
Link copied to clipboard
common
var tickwidth: Number
Sets the tick width (in px).
title
Link copied to clipboard
common
var title: String?
Sets the title of this axis.
type
Link copied to clipboard
common
var type: AxisType
Enumerated, one of ( "-" | "linear" | "log" | "date" | "category" | "multicategory" ) .
visible
Link copied to clipboard
common
var visible: Boolean?
A single toggle to hide the axis while preserving interaction like dragging.
zeroline
Link copied to clipboard
common
var zeroline: Boolean?
Determines whether or not a line is drawn at along the 0 value of this axis.
zerolinecolor
Link copied to clipboard
common
val zerolinecolor: Color
Sets the line color of the zero line.
zerolinewidth
Link copied to clipboard
common
var zerolinewidth: Number
Sets the width (in px) of the zero line.