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
100 stars 52 forks source link

Dashboard doesn't display string values of a Rating scale #481

Open JaneSjs opened 1 month ago

JaneSjs commented 1 month ago

T20212 - Rating question: Dashboard preview not displaying the answer. https://surveyjs.answerdesk.io/internal/ticket/details/T20212


View Demo

image

JaneSjs commented 1 month ago

A rating scale is used to collect quantitative data, so it should always assign numeric values to the choices. Since the dashboard visualizes the rating scale using a histogram, it requires the values to be numerical.

Update your survey definition and assign numeric values to rating scale items: View Demo.

"rateValues": [
   { value: 0, text: "Item 1"},
   { value: 1, text: "Item 2"}
]

image

If you wish to use string values, consider using another single-select question: a Radiogroup.