ColorBar

class ColorBar : Scheme

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion : SchemeSpec<ColorBar>

Properties

Link copied to clipboard

Sets the color of padded area. Default: rgba(0, 0, 0, 0).

Link copied to clipboard

Sets the axis line color. Default: #444.

Link copied to clipboard

Sets the width (in px) or the border enclosing this color bar. Default: 0.

Link copied to clipboard

Constrain the size of text inside or outside a bar to be no larger than the bar itself.

Link copied to clipboard
override var descriptor: MetaDescriptor?
Link copied to clipboard
var len: Number

Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. Default: 1.

Link copied to clipboard

Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" (default) or in "pixels. Use len to set the value.

Link copied to clipboard
override val meta: ObservableMutableMeta
Link copied to clipboard

Sets the axis line color. Default: #444.

Link copied to clipboard

Sets the width (in px) of the axis line. Default: 1.

Link copied to clipboard

Sets the thickness of the color bar. This measure excludes the size of the padding, ticks and labels. Default: 30.

Link copied to clipboard

Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels" (default). Use thickness to set the value.

Link copied to clipboard

Sets the color bar's tick label font

Link copied to clipboard
Link copied to clipboard
var x: Number

Sets the x position of the color bar (in plot fraction). Default: 1.02.

Link copied to clipboard

Sets this color bar's horizontal position anchor. This anchor binds the x position to the "left" (default), "center" or "right" of the color bar.

Link copied to clipboard

Sets the amount of padding (in px) along the x direction. Default: 10.

Link copied to clipboard
var y: Number

Sets the y position of the color bar (in plot fraction). Default: 0.5.

Link copied to clipboard

Sets this color bar's vertical position anchor. This anchor binds the y position to the "top", "middle" (default) or "bottom" of the color bar.

Link copied to clipboard
var ypad: Int

Sets the amount of padding (in px) along the y direction. Default: 10.

Functions

Link copied to clipboard
fun Scheme.color(key: Name? = null): ReadOnlyProperty<Scheme, Color>
Link copied to clipboard
open operator override fun get(name: Name): MutableMeta?
Link copied to clipboard
open override fun getValue(name: Name): Value?
Link copied to clipboard
fun Scheme.numberGreaterThan(minValue: Number, default: Number = minValue, key: Name? = null): ReadWriteProperty<Any?, Number>

A safe Number ray

Link copied to clipboard
fun Scheme.numberInRange(range: ClosedRange<Double>, key: Name? = null): ReadWriteProperty<Any?, Number>

A safe Number range

Link copied to clipboard
open operator override fun set(name: Name, node: Meta?)
Link copied to clipboard
open override fun setValue(name: Name, value: Value?)
Link copied to clipboard
fun tickfont(block: Font.() -> Unit)
Link copied to clipboard
fun title(block: Title.() -> Unit)
Link copied to clipboard
fun Scheme.toJsonString(): String

Convert any type-safe configurator to json string

Link copied to clipboard
open override fun toMeta(): Laminate
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open fun validate(name: Name, meta: Meta?): Boolean