Skip to content

Documentation / @finchart/core / YAxisOptions

Interface: YAxisOptions

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

y축(값 축)이 더 갖는 것. 둘 다 무대 전역이다.

Extends

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

Inherited from

AxisOptions.format


minTickSpacing?

optional minTickSpacing?: number

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

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

Inherited from

AxisOptions.minTickSpacing


position?

optional position?: "left" | "right"

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

y축이 어느 쪽인가. 기본 왼쪽. 무대 전역이다 — 슬라이스가 하나라 pane마다 다른 쪽을 줄 수 없다.


showLabels?

optional showLabels?: boolean

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

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

Inherited from

AxisOptions.showLabels


size?

optional size?: number

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

축 자리의 고정 폭(px). 주면 측정을 건너뛴다.


ticks?

optional ticks?: TickStrategy

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

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

Inherited from

AxisOptions.ticks