Legend

class Legend : Scheme

Types

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

Functions

font
Link copied to clipboard
common
fun font(block: Font.() -> Unit)
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)
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?)
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

bgcolor
Link copied to clipboard
common
val bgcolor: Color
Sets the legend background color.
bordercolor
Link copied to clipboard
common
val bordercolor: Color
Sets the color of the border enclosing the legend.
borderwidth
Link copied to clipboard
common
var borderwidth: Number
Sets the width (in px) of the border enclosing the legend.
defaultLayer
Link copied to clipboard
common
open val defaultLayer: Meta
descriptor
Link copied to clipboard
common
override var descriptor: NodeDescriptor?
font
Link copied to clipboard
common
var font: Font
Sets the font used to text the legend items.
orientation
Link copied to clipboard
common
var orientation: LegendOrientation
Sets the orientation of the legend (vertical/horizontal).
traceorder
Link copied to clipboard
common
var traceorder: TraceOrder
The order at which the legend items are displayed.
x
Link copied to clipboard
common
var x: Number
Number between or equal -2 and 3.
xanchor
Link copied to clipboard
common
var xanchor: XAnchor
Sets the legend's horizontal position anchor.
y
Link copied to clipboard
common
var y: Number
Number between or equal to -2 and 3.
yanchor
Link copied to clipboard
common
var yanchor: YAnchor
Sets the legend's vertical position anchor.