surveyjs / survey-analytics

Customizable JavaScript library to create interactive survey data dashboards and facilitate survey results analysis for your end-users.
https://surveyjs.io/dashboard/examples/plain-data
Other
99 stars 52 forks source link

Implement an API to make a visualizer default #427

Closed RomanTsukanov closed 7 months ago

RomanTsukanov commented 7 months ago

IMPLEMENTED

The VisualizationManager.registerVisualizer method now supports a third parameter—index—that specifies the position of the visualizer you register in the visualizer list for the specified question type. Pass 0 as the index parameter to insert the visualizer at the beginning of the list and use it by default.

// Register a custom visualizer for Dropdown questions and use it by default
VisualizationManager.registerVisualizer("dropdown", CustomVisualizer, 0);

Documentation