Skip to content

Interface: AxisScaleOptions

Defined in: plot.ts:51

Properties

domain?

ts
optional domain?: Range;

Defined in: plot.ts:54

Fixed domain. If omitted, the axis autoscales to the data.


factors?

ts
optional factors?: string[];

Defined in: plot.ts:56

Factor labels for a "categorical" axis (fixes the domain to the bands).


times?

ts
optional times?: ArrayLike<number>;

Defined in: plot.ts:62

Per-index epoch-ms timestamps for an "ordinal-time" axis (finance/session axis). Plot bars at integer indices 0..times.length-1; gaps collapse and ticks show calendar dates.


type?

ts
optional type?: ScaleType;

Defined in: plot.ts:52

MIT licensed. WebGL2 required.