Solved
Graphing Individual-Level Feedback Over Time
I use Qualtrics to administer assessments to people across multiple time-points. I'm interested in providing participants with individual-level feedback on their scores for each time point in a line graph. How would I go about this using Qualtrics? I can retrieve and display scores for each time point using embedded data, but the graphing is stumping me. Ideally, I would like to display the graph at the end of the survey as well as in an email triggered after completion. Any advice would be much appreciated!
Best answer by Anonymous
Hello @boosterh ,
We can also use ChartJS.
Step 1: For ChartJS paste the below code in the header(edit) -> <>(source) view
`<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.js" integrity="sha256-rjYnB0Bull7k2XkbJ03UNGqMuMieR769uQVGSSlsi6A=" crossorigin="anonymous"></script>`
Step 2: Create a Descriptive text question and add following code in the HTML view of question:
`<canvas height="400" id="myChart" width="400"> </canvas>`
Step 3: Paste the below code in the JS(OnReady) of the descriptive question
var ctx = document.getElementById("myChart").getContext('2d');
var myChart = new Chart(ctx, {
type: 'bar',
data: {
labels: ["d1", "d2", "d3"],
datasets: [{
label: '# of Votes',
data: ["12","20","5"],
backgroundColor: [
'rgba(255, 99, 132, 0.2)',
'rgba(54, 162, 235, 0.2)',
'rgba(255, 206, 86, 0.2)',
'rgba(75, 192, 192, 0.2)',
'rgba(153, 102, 255, 0.2)',
'rgba(255, 159, 64, 0.2)'
],
borderColor: [
'rgba(255,99,132,1)',
'rgba(54, 162, 235, 1)',
'rgba(255, 206, 86, 1)',
'rgba(75, 192, 192, 1)',
'rgba(153, 102, 255, 1)',
'rgba(255, 159, 64, 1)'
],
borderWidth: 1
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero:true
}
}]
}
}
});
Step 4: Please go through the documentation for more features.
Attached is the reference QSF and survey link is here
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
