docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a lightweight controller that renders a scatter chart and exposes programmatic hooks for moving the hover tooltip and cancelling an in-progress drawn shape without relying on user gestures.
export type Point = { x: number; y: number };
export interface HoverShapeController {
initialize(container: HTMLElement, points: Point[], title?: string): Promise<void>;
focusPoint(traceIndex: number, pointIndex: number): Promise<void>;
clearFocus(): void;
cancelShapeDraw(): void;
}
export function createHoverShapeController(): HoverShapeController;Interactive charting library used for rendering and programmatic hover and shape control. @satisfied-by