<#--区域和电压等级统计次数共用模板--> { title: { text: '暂态事件次数', left:'center', subtext:'${subtext}', }, tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } }, legend: { data: ['暂降次数', '中断次数', '暂升次数'], left: '7%', top:'5%', textStyle: { color: "#666666" }, itemWidth: 10, itemHeight: 10, itemGap: 15 }, grid: { left: '3%', right: '8%', bottom: '5%', top: '20%', containLabel: true }, xAxis: { name: '${xname}', nameTextStyle: { color: '#666666', }, type: 'category', data: ${area} }, yAxis: { name: '(次)', nameTextStyle: { color: '#666666', }, type: 'value', axisLine: { show: true, lineStyle: { color: '#666666' } }, axisLabel: { color: '#666666' }, splitLine: { lineStyle: { color: ['#ccc'], type: [5, 8], dashOffset: 3 } }, }, series: [ { name: '暂降次数', type: 'bar', stack: 'account', barWidth: 20, label: { show: true, color:'purple', verticalAlign: 'middle', rotate: 0, fontSize: 12, }, color:'#ff9966', itemStyle: { }, data: ${sag} }, { name: '中断次数', type: 'bar', stack: 'account', barWidth: 20, label: { show: true, color:'purple', verticalAlign: 'middle', rotate: 0, fontSize: 12, }, color:'#00dd00', itemStyle: { }, data: ${break} }, { name: '暂升次数', type: 'bar', stack: 'account', barWidth: 20, label: { show: true, color:'purple', verticalAlign: 'middle', rotate: 0, fontSize: 12, }, color:'#0066ff', itemStyle: { }, data: ${up} }, ] }