This commit is contained in:
yanran200730
2022-08-01 08:59:06 +08:00

View File

@@ -372,14 +372,11 @@ export default {
},
// 触发人数
getBrokenEcharts1() {
let dataX = this.resX;
let dataY1 = this.resY;
this.brokenEcharts1 = echarts.init(
document.getElementById("brokenEcharts1")
);
this.brokenEcharts1.setOption({
tooltip: {
show: this.filterShow == true? false: true ,
trigger: "axis",
},
grid: {
@@ -418,7 +415,7 @@ export default {
series: [
{
type: "line",
data: dataY1,
data: this.resY,
lineStyle: {
color: "#4B87FE",
},
@@ -436,7 +433,6 @@ export default {
);
this.brokenEcharts2.setOption({
tooltip: {
show: this.filterShow == true? false: true,
trigger: "axis",
},
grid: {
@@ -494,7 +490,6 @@ export default {
);
this.brokenEcharts3.setOption({
tooltip: {
show: this.filterShow == true? false: true ,
trigger: "axis",
},
grid: {
@@ -572,7 +567,6 @@ export default {
this.getColumnarEcharts(xData, yData)
})
},600)
}
}
});
@@ -611,18 +605,18 @@ export default {
},
series: [
{
label: {
show: true,
position: top,
textStyle: {
fontSize: 13,
color: '#666'
}
},
data: yData,
itemStyle: {
normal: {
color: "#5087ec",
label: {
show: true, //开启显示
position: 'top', //在上方显示
textStyle: {
fontSize: 13,
color: '#666'
}
},
},
},
type: "bar",