Skip to content

Documentation / @finchart/core / AxisOptions

Interface: AxisOptions

Defined in: packages/core/src/plot/types.ts:25

눈금을 어떻게 뽑고 보일지. pane마다 덮어쓸 수 있다.

자리(size·position)가 여기 없는 이유: 축 슬라이스는 무대에 하나씩이라 pane마다 다른 폭이나 다른 쪽을 줄 자리가 없다.

Extended by

Properties

format?

optional format?: (value, step?) => string

Defined in: packages/core/src/plot/types.ts:34

눈금 값 → 표시 문자열. ticks 전략이 있으면 눈금에는 안 쓰이지만, 장식(크로스헤어 배지·툴팁·레전드·priceLine)의 기본 표기로는 전략과 무관하게 쓰인다. 두 번째 인자로 눈금 간격이 온다 — 이웃 눈금을 구분할 자릿수를 고르는 데 쓴다.

Parameters

value

number

step?

number

Returns

string


minTickSpacing?

optional minTickSpacing?: number

Defined in: packages/core/src/plot/types.ts:36

눈금 하나가 차지할 최소 픽셀. 생략하면 방향별 기본값.


showLabels?

optional showLabels?: boolean

Defined in: packages/core/src/plot/types.ts:27

눈금 라벨을 오버레이에 올릴지. 기본 true.


ticks?

optional ticks?: TickStrategy

Defined in: packages/core/src/plot/types.ts:42

눈금의 배치와 라벨을 통째로 — 시간축(timeTicks)이 이 자리다. x와 y 둘 다, pane별로도 읽는다. 전략이 있으면 기본 산술과 format은 쓰이지 않는다.