Skip to content

IAnnotationPin

Type interface

What an annotation is pinned to, so that it moves with it.

Sources

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

Properties

item

Type number | string | Array

For "item": the item, as its ID, category, or index path from the top of a hierarchy. On a radar or timeline chart: the index of the series and of its data item.

kind

Type "xy" | "geo" | "item"

  • "xy" - values of an XY chart's axes.

  • "geo" - geographic coordinates on a map.

  • "item" - a pie slice, a hierarchy node, a flow node, or a column or data point of a radar or timeline chart.

space

Type "box" | "polar" | "point" | "radial"

For "item": "polar" for a slice, "point" for a data point (the annotation's points are pixel offsets from it), "radial" for a line's end on a round node (distance from its center, in radii, and an angle;

the end is drawn on the side facing the line's other end), "box" otherwise.

target

Type number | string

The chart or series: its id setting, or its index among the charts and series annotations can be pinned to, in the order they are drawn.

xAxis

Type number | string

For "xy": the X axis, as its id or its index in xAxes.

yAxis

Type number | string

For "xy": the Y axis, as its id or its index in yAxes.