In-question data visualization for constant sum? | XM Community
Skip to main content
Solved

In-question data visualization for constant sum?


Rob_P
Level 1 ●
Forum|alt.badge.img+2
  • Level 1 ●
  • 5 replies
I've recently completed a survey on the Qualtrics platform in which a constant sum question was used with slider bars. What made this question unique, however, was that the question also included a doughnut chart which dynamically displayed the values attributed to each choice within the question and listed a message that "You have X% remaining." Can anyone offer insight into how this might have been accomplished? Image attached for reference. !

Best answer by TomG

It is done with JavaScript. I've done it with a pie chart instead of a doughnut. There are a number of JavaScript libraries that do charts that can be used.
View original

3 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5926 replies
  • Answer
  • April 25, 2018
It is done with JavaScript. I've done it with a pie chart instead of a doughnut. There are a number of JavaScript libraries that do charts that can be used.

Rob_P
Level 1 ●
Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • 5 replies
  • April 25, 2018
Thanks, Tom! I've assumed as much and I've found the chart.js library in another thread. I am a complete neophyte when it comes to coding. Any suggestions on how best to get started? Do you know of any online resources or tutorials which may help guide me down this path?

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5926 replies
  • April 25, 2018
You can start with this tutorial on Javascript then move to jQuery.

Leave a Reply