Skip to content

Documentation / @finchart/core / TickStrategy

Interface: TickStrategy

Defined in: packages/core/src/axis/types.ts:53

눈금의 배치와 라벨을 통째로 정하는 계약. format은 라벨만 바꾸지만, 시간축은 배치가 문제다 — 눈금이 1·2·5×10ⁿ의 배수가 아니라 달력 경계에 놓여야 한다. 전략이 있으면 축의 기본 산술과 format은 쓰이지 않는다.

position은 내지 않는다 — 축이 스케일로 채운다. 그래야 전략이 픽셀 좌표계를 모른 채 순수하게 남는다.

Methods

ticks()

ticks(context): object[]

Defined in: packages/core/src/axis/types.ts:54

Parameters

context

TickStrategyContext

Returns

object[]