Skip to content

Interface: Tick

Defined in: types.ts:2

A single axis tick. Only value is required; everything else has sensible defaults.

Properties

grid?

ts
optional grid?: boolean;

Defined in: types.ts:10

Whether this tick draws a grid line. Defaults to true for major, false for minor.


label?

ts
optional label?: string;

Defined in: types.ts:6

Text shown next to the tick. If omitted, the axis format fn is used.


minor?

ts
optional minor?: boolean;

Defined in: types.ts:8

Minor ticks are short, unlabeled, and (by default) draw no grid line.


value

ts
value: number;

Defined in: types.ts:4

Position in data space.

MIT licensed. WebGL2 required.