Hi, as I do not understand wwhat you are trying to do, I show you what I do usually.
1. Show the results of all previous respondents in a question (here in version 3.x. with plugin "getStatInSurvey"; in 5.x. this is in core.
Code:
<div id="chart1" style="float:left;width:100%;height:250px;"> </div>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script type="text/javascript" charset="utf-8">
Highcharts.setOptions({
colors: ['#1CC4CC', '#275BCC', '#6C96CC', '#3618CC', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4']
});
// Create the chart
Highcharts.chart('chart1', {
chart: {
type: 'column',
backgroundColor: 'transparent'
},
title: {
text: ''
},
subtitle: {
text: ''
},
xAxis: {
categories: [
'sehr gut',
'gut',
'mittel',
'schlecht'
],
crosshair: true
},
yAxis: {
min: 0,
title: {
text: 'Anzahl'
}
},
legend: {
enabled: false
},
plotOptions: {
column: {
pointPadding: 0.1,
borderWidth: 0
}
},
series: [{
name: 'Total',
colorByPoint: true,
data: [{' [Q2.nb.1]'},{' [Q2.nb.2]'},{' [Q2.nb.3]'},{' [Q2.nb.4]'}]
}]
});
2. Show a score of this particular respondent.