In-question data visualization for constant sum? | XM Community
Skip to main content
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.



!
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.
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?
You can start with this tutorial on Javascript then move to jQuery.

Leave a Reply