Skip to content

Interface: D3PGlyphContext ​

Defined in: core/renderers/glyph.ts:24

What a glyph needs to draw one point, in pixels.

Methods ​

at() ​

ts
at(value): number;

Defined in: core/renderers/glyph.ts:30

Position of a value along the value axis.

Parameters ​

value ​

number

Returns ​

number


xy() ​

ts
xy(category, position): [number, number];

Defined in: core/renderers/glyph.ts:32

Pixel coordinates of (category position, value position), whatever the orientation.

Parameters ​

category ​

number

position ​

number

Returns ​

[number, number]

Properties ​

center ​

ts
center: number;

Defined in: core/renderers/glyph.ts:26

Position of the middle of the point along the category axis.


half ​

ts
half: number;

Defined in: core/renderers/glyph.ts:28

Half of the width the glyph may take.


horizontal ​

ts
readonly horizontal: boolean;

Defined in: core/renderers/glyph.ts:34

Whether the glyph is drawn horizontally: the categories are along Y.