docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a tiny utility module that sets up a multi-trace scatter plot and exposes functions to mutate trace styling and layout incrementally, without rebuilding the figure.
type XYSeries = { x: number[]; y: number[]; name?: string };
export async function initPlot(container: HTMLElement | string, series: XYSeries[]): Promise<void>;
export async function updateTraceStyle(options: { traceIndex: number; color?: string; width?: number; visible?: boolean }): Promise<void>;
export async function updateLayout(options: { title?: string; xRange?: [number, number]; yRange?: [number, number]; annotation?: { text: string; x: number; y: number } }): Promise<void>;Provides in-place data and layout restyling for interactive plots.