Marker Component

The Marker component is a utility for placing labels or icons at specific positions on your graph.

Controllable Markers with useCoordState hook

If you're used to Controlled Components pattern in React, you can apply the concept to Markers.

Markers accepts a position prop and an onChange callback that will be called when the Marker is dragged.

For finer control, you can also leverage other HTML native events, such as onMouse*, onPointer*, etc.

Usage