提交修改

pg_adapter
dshclm 6 months ago
parent 0949e40fe1
commit b11303b7b3

@ -26,9 +26,11 @@
<div class="echart"> <div class="echart">
<div class="children_echarts left_echarts"> <div class="children_echarts left_echarts">
<div id="leftMain" style="width: 800px;height:310px"></div> <div id="leftMain" style="width: 800px;height:310px"></div>
<h2 style="text-align: center;margin-top: -14px;font-weight: bold">自行制作</h2>
</div> </div>
<div class="children_echarts right_echarts"> <div class="children_echarts right_echarts">
<div id="rightMain" style="width: 500px;height:300px"></div> <div id="rightMain" style="width: 500px;height:300px"></div>
<h2 style="text-align: center;margin-top: -7px;font-weight: bold">上级下发</h2>
</div> </div>
</div> </div>
<div class="col-sm-12 search-collapse"> <div class="col-sm-12 search-collapse">
@ -193,21 +195,25 @@
if (response.data.code == web_status.SUCCESS){ if (response.data.code == web_status.SUCCESS){
myChart.setOption({ myChart.setOption({
title: { title: {
text: '载体类型统计' text: '载体数量'
}, },
tooltip: {}, tooltip: {},
legend: { legend: {
data:['载体类型'] data:['数量']
}, },
xAxis: { xAxis: {
data: response.data.data.xAxisData, data: response.data.data.xAxisData,
axisLabel: {
rotate: 45, // 旋转标签的角度
margin: 10, // 标签与坐标轴的间距
},
}, },
yAxis: { yAxis: {
}, },
series: [ series: [
{ {
name: '载体类型', name: '数量',
type: 'bar', type: 'bar',
data: response.data.data.yAxisData, data: response.data.data.yAxisData,
itemStyle: { itemStyle: {
@ -224,13 +230,13 @@
if (response.data.code == web_status.SUCCESS){ if (response.data.code == web_status.SUCCESS){
rightMain.setOption({ rightMain.setOption({
title: { title: {
text: '载体密级统计' text: '载体数量'
}, },
tooltip: {}, tooltip: {},
legend: { legend: {
orient: 'vertical', orient: 'vertical',
x: 'right', x: 'right',
data: ['秘密', '机密', '绝密'] data: response.data.data,
}, },
series: [ series: [
{ {

Loading…
Cancel
Save