Skip to content

IAnnotationPoint

Type interface

A point of an annotation. What x and y mean depends on the annotation's pin:

  • No pin: share of the chart's width and height (0-1).

  • "xy": values of the X and Y axes (a timestamp on a date axis, a category on a category axis).

  • "geo": longitude (x) and latitude (y).

  • "item": share of the item's width and height (0-1), or for a slice the share of its arc (x) and its thickness (y).

Sources

IAnnotationPoint is an interface: it describes a shape of data and is not imported on its own.

Properties

pin

Type IAnnotationPinSince 5.25.0

What this point is pinned to, if not the annotation's pin: e.g. a line from one node to another has its end pinned to the other node.

x and y are then relative to this pin.

x

Type number | string

Horizontal position.

xl

Type undefined | number

For a category on the X axis: where in its cell (0-1).

y

Type number | string

Vertical position.

yl

Type undefined | number

For a category on the Y axis: where in its cell (0-1).