<script>
var aa = {
abot: $score_percent_dan_str
};
console.log(aa);
var j = -1;
var chart = Highcharts.chart('container', {
title: {
text: "{abot:$papertitle}"
},
subtitle: {
text: '数据来源:By 上海延誉'
},
xAxis: {
categories: {
abot: $small_cata_name_str
}
},
yAxis: {
title: {
text: '项目分数'
}
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle'
},
plotOptions: {
series: {
label: {
connectorAllowed: false
},
pointStart: 0
}
},
series: [{
name: '优良表现',
data: {
abot: $score_90_str
}
}, {
name: '基本表现',
data: {
abot: $score_60_str
}
},
{
name: '学员表现',
data: {
abot: $student_score_str
},
dataLabels: {
enabled: true,
formatter: function() {
++j;
return aa[j] + '%';
}
}
}
],
responsive: {
rules: [{
condition: {
maxWidth: 500
},
chartOptions: {
legend: {
layout: 'horizontal',
align: 'center',
verticalAlign: 'bottom'
}
}
}]
}
});
</script>