Open JaneSjs opened 1 month ago
At this moment visualizers are bound to question type: e.g. rating -> gauge, rating -> histogram and we don't chack whether this visualizer fit certain question: in this case rating question choice has string value instead of expected numeric type.
We need to implement another, more intelligent visualizers registration and creation flow, may be like a fit
function for vizualizers. Most likely we'll implement it a bit later.
T19387 - Dashboard not displaying rating-type question string values https://surveyjs.answerdesk.io/internal/ticket/details/T19387
Usage scenario: A rating scale has a string/textual rate item values.
Issue: When strings are used as rate item values, SurveyJS Dashboard cannot visualize textual rating scale values using the default Histogram visualizer. View Demo
A histogram is designed for numerical data and represents the distribution of continuous or discrete numerical variables. Since histograms require dividing data into bins (ranges of numerical values), they aren't directly applicable to categorical data (such as strings), where there is no natural numerical ordering or range.
Suggestion: When a Rating scale uses string values, visualize a rating scale using the
SelectBasePlotly
visualizer, which is used for single- and multi-select questions (Checkboxes, Tagbox, Dropdown, Radiogroup).