$(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}
${item.stunum}
${item.missnum}
${item.score}
${item.maxscore}
${item.minscore}
${item.avgscore}
${item.yxrate}
${item.lhrate}
${item.jgrate}
${item.dfrate}
${item.bzc}
` } 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); });