Class Encoding

Encoding base class. Subclassed by CatEncoding and ContEncoding. If you are going to override RenderBase.updateLegend, then you are expected to return an array of Encoding instances. Each encoding represents a legend group.

Hierarchy

Index

Properties

caption

caption: string

The caption for the encoding. Will be rendered as the legend group caption.

channel

channel: string

The encoding channel. Can be either "color" or "size"

ref

ref: IRSDataNode | null

An optional data object that is referenced by this encoding.

slot

slot: string | null

The slot that this encoding is assigned to.

subCaption

subCaption: string

An optional sub caption for the encoding.

type

type: string

The type of the encoding, either "cat" or "cont".