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?
optionalalign?:"center"|"left"|"right"
Defined in: packages/core/src/drawing/draw.ts:229
Which side of the pill x refers to (default 'left').
background?
optionalbackground?:string
Defined in: packages/core/src/drawing/draw.ts:225
Pill fill; defaults to the theme drawing color.
color?
optionalcolor?: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?
optionaltextStyle?: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.