Documentation / @ripl/charts / arcCentroidAnchor
Function: arcCentroidAnchor() ​
arcCentroidAnchor(
arc): () =>InteractionPoint
Defined in: charts/src/core/interaction.ts:201
Anchors a tooltip at an arc's centroid, measured against the geometry the arc is animating toward rather than its current frame, so a tooltip opened mid-transition lands where the segment settles rather than where it happens to be.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
arc | Arc | The arc to anchor against. |
Returns ​
An HoverHighlightOptions.anchor resolver.
() => InteractionPoint