Skip to content

charton API


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

Interface: NumericHorizontalScaleOptions ​

Defined in: packages/core/src/numeric/chart.ts:27

The horizontal axis of a NumericChart.

Properties ​

format? ​

optional format?: PriceFormat

Defined in: packages/core/src/numeric/chart.ts:29

How x values are labelled; default: decimals from the tick step.


invert ​

invert: boolean

Defined in: packages/core/src/numeric/chart.ts:31

Larger values on the left. Default false.


margin ​

margin: number

Defined in: packages/core/src/numeric/chart.ts:33

Free room left and right of the data after fitContent, as a fraction of the plot width. Default 0.02.