Documentation menu

Interface

LabelOptions

Options of addLabel.

Properties

NameTypeDescription
xnumber
ynumber
yAxis?'left' | 'right'
text?string
icon?PlotIcon | null
color?string | null
align?'left' | 'center' | 'right'
offset?[ number, number ]

Offset of the text from the point, CSS px right and down. Default [6, 0].

Declaration

export interface LabelOptions {
    x: number;
    y: number;
    yAxis?: 'left' | 'right';
    text?: string;
    icon?: PlotIcon | null;
    color?: string | null;
    align?: 'left' | 'center' | 'right';
    offset?: [
        number,
        number
    ];
}

Used by

FerroPlot