Skip to content

charton API


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

Interface: ChartTypography ​

Defined in: packages/core/src/typography.ts:30

Theme typography: a baseline font plus optional blocks per surface. The baseline's family and size default to the theme's fontFamily and fontSize, so themes that set only those keep working.

Extends ​

Properties ​

axis? ​

optional axis?: FontSettings

Defined in: packages/core/src/typography.ts:32

Price and time axis ticks and the price, crosshair and countdown labels on them.


drawings? ​

optional drawings?: FontSettings

Defined in: packages/core/src/typography.ts:38

Text of drawings, the default for tools that read the theme font.


fontFamily? ​

optional fontFamily?: string

Defined in: packages/core/src/typography.ts:13

Inherited from ​

FontSettings.fontFamily


fontSize? ​

optional fontSize?: number

Defined in: packages/core/src/typography.ts:15

Size in css px.

Inherited from ​

FontSettings.fontSize


fontWeight? ​

optional fontWeight?: FontWeight

Defined in: packages/core/src/typography.ts:16

Inherited from ​

FontSettings.fontWeight


labels? ​

optional labels?: FontSettings

Defined in: packages/core/src/typography.ts:36

Labels inside the plot: price lines, alerts, orders, trade badges, tooltips and indicator messages.


legend? ​

optional legend?: FontSettings

Defined in: packages/core/src/typography.ts:34

Legend rows and the heatmap inspector.


markers? ​

optional markers?: FontSettings

Defined in: packages/core/src/typography.ts:42

Text of bar markers (annotations.setMarkers).


numerals? ​

optional numerals?: NumeralStyle

Defined in: packages/core/src/typography.ts:17

Inherited from ​

FontSettings.numerals


watermark? ​

optional watermark?: FontSettings

Defined in: packages/core/src/typography.ts:40

Watermark family and weight; its sizes come from the watermark options.