VisualizerFactory
An object that allows you to create individual visualizers without creating a visualization panel.
Methods
Creates a visualizer for a single question.
import { VisualizerFactory } from "survey-analytics";
const visualizer = new VisualizerFactory.createVisualizer(
question,
data,
options
);
visualizer.render("containerId")
If a question has more than one registered visualizer, users can switch between them using a drop-down menu.
- Type:
- (question: Question, data: any, options?: { [index: string]: any; }) => VisualizerBase
- Parameters:
-
question, type: Question ,
A question for which to create a visualizer.
data, type: any ,A data array with survey results to be visualized.
options, type: { [index: string]: any; } ,An object with any custom properties you need within the visualizer.
- Implemented in:
- VisualizerFactory
Copyright © 2024 Devsoft Baltic OÜ. All rights reserved.