射击课
这学期选了射击课,还蛮有趣的。 上半学期是气手枪,下半学期是气步枪。 在这里记录一下成绩。 var ec_union= []; function draw(doc_id , ec_title, data, use_union){ if(!use_union){ for(var x of data){ ec_union.push(x); } }else{ data=ec_union; } var ec_tmp = echarts.init(document.getElementById(doc_id)); ec_tmp.showLoading(); var ec_option = { title: { text: ec_title, }, polar: {}, tooltip: { formatter: function (params) { // console.log(params); return (params.value[0]+'环') ; } }, angleAxis: { min: 0, max: 360, interval: 30, startAngle: 90, type: 'value', axisLine:{ lineStyle:{ type: 'dotted' } }, splitLine: { show: true,// lines lineStyle: { color: '#999', type: 'dashed' } }, axisPointer:{ show: true, triggerTooltip: false, lineStyle: { color: '#555', type:"dashed", width: 1 } } }, radiusAxis: { min: 1, max: 11, interval: 1, inverse: true, type: 'value', axisLine:{ lineStyle:{ type: 'dotted' } }, axisLabel:{ show: true, margin:10, rotate: 0, formatter: function (value, index) { if(index === 10) return ''; return (value); } }, splitArea: { show:true, areaStyle: { color: ['#99C8E6','#98C7E5','#97C6E4','#7DB5DA','#7DB5DA','#7DB5DA', '#72ACD1','#72ACD1','#72ACD1','#72ACD1'], shadowBlur: 3, shadowColor: 'rgba(0, 0, 0, 0.5)' } }, splitLine: { show: true,// lines lineStyle: { color: '#000' } }, axisPointer:{ show: true, type: 'shadow', triggerTooltip: false } }, series: [{ name: ec_title, type: 'scatter', coordinateSystem: 'polar', symbolSize: function (val) { return 15 ; }, data: data, animationDelay: function (idx) { return idx * 20; } }] } ec_tmp.hideLoading(); ec_tmp.setOption(ec_option); } Week1 draw("week1-1", "10m, Air Pistol Target, week1-1", [[2.17,93.4],[2.86,50.0], [3.99,26.8], [4.78,354.2], [5.35,324.2] ] ); ...