Skip to content

charton API


charton API / @chart-on/core / index / LabelPillOptions

Interface: LabelPillOptions ​

Defined in: packages/core/src/drawing/draw.ts:223

Options for labelPill: fill and text colors, which side of the pill x marks, and the text style.

Properties ​

align? ​

optional align?: "center" | "left" | "right"

Defined in: packages/core/src/drawing/draw.ts:229

Which side of the pill x refers to (default 'left').


background? ​

optional background?: string

Defined in: packages/core/src/drawing/draw.ts:225

Pill fill; defaults to the theme drawing color.


color? ​

optional color?: string

Defined in: packages/core/src/drawing/draw.ts:227

Text color; defaults to black or white, whichever contrasts more with the fill (contrastText).


textStyle? ​

optional textStyle?: DrawingTextStyle

Defined in: packages/core/src/drawing/draw.ts:231

Size, weight and slant of the text, and a text color over color; usually the drawing's style.