docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build reusable visual themes for interactive figures by extracting defaults from one chart and reapplying them to others.
export type PlotFigure = {
data: any[];
layout?: Record<string, any>;
config?: Record<string, any>;
};
export type Template = Record<string, any>;
export function buildTemplate(baseFigure: PlotFigure): Template;
export function applyTemplate(template: Template, targetFigure: PlotFigure): PlotFigure;
export function mergeTemplate(template: Template, overrides: Partial<PlotFigure>): PlotFigure;Interactive charting library with template extraction, validation, and rendering support.