$(function () { function initAverageScoreEcharts(list,xAxis_data) { var itemStyle = { normal: { label: { show: true, //开启显示数值 position: "top" //数值在上方显示 } } }; var score=[],maxscore=[],minscore=[],avgscore=[]; var curlegend = ["满分", "最高分", "最低分", "平均分"]; for(var i=0;i item.jgrate) { jgclass = { num: item.jgrate, classname: item.subjectname }; } if (skclass.num < item.stunum) { skclass = { num: item.stunum, classname: item.subjectname }; } if (qkclass.num < item.missnum) { qkclass = { num: item.missnum, classname: item.subjectname }; } html += '
'+(item.subjectname ||0)+ '
'+(item.stunum ||0)+ '
'+(item.missnum ||0)+ '
'+(item.score ||0)+ '
'+(item.maxscore ||0)+ '
'+(item.minscore ||0)+ '
'+(item.avgscore ||0)+ '
'+(item.yxrate ||0)+'%'+ '
'+(item.lhrate ||0)+'%'+ '
'+(item.jgrate ||0)+'%'+ '
'+(item.dfrate ||0)+'%'+ '
'+(item.bzc ||0)+ '
' } xAxis_data.push(item.subjectname); } $(".section1 .mfclass").text(mfclass.classname); $(".section1 .yxclass").text(yxclass.classname); $(".section1 .jgclass").text(jgclass.classname); $(".section1 .skclass").text(skclass.classname); $(".section1 .qkclass").text(qkclass.classname); $(".section1 .tbody").html(html); initAverageScoreEcharts(parameter.subjects,xAxis_data); initExcellenceRateEcharts(parameter.subjects,xAxis_data); initExamnumEcharts(parameter.subjects,xAxis_data); initbzcEcharts(parameter.subjects,xAxis_data); });