useRenderable
Registers a canvas renderable with the chart.
import { useRenderable } from "@reincharts/core";Registers a canvas renderable with the chart. The latest spec is used on every frame, and the chart redraws whenever the calling component re-renders.
Signature
function useRenderable<T = any>(spec: RenderableSpec<T>): Renderable<T>See also
- Custom series (guide)
- Custom series (example)
- Draggable line (example)