This commit is contained in:
2023-02-02 09:01:28 +08:00
parent 319c285641
commit 3161b54cd7
13 changed files with 324 additions and 316 deletions

View File

@@ -93,6 +93,7 @@ export default {
// 折线图
initChartLine() {
const rclUcl = this.rcl.ucl;
const xbarCL = this.xbarCL
var option = {
title: {
text: this.title,
@@ -178,7 +179,7 @@ export default {
},
splitLine: { show: false },
nameTextStyle: {
padding: 25,
padding: 38,
},
position: "left",
axisLine: {
@@ -198,15 +199,23 @@ export default {
type: "value",
gridIndex: 0,
name: this.yName1,
min: function(value) {
return value.min - 1;
max: function(value) {
if (xbarCL.ucl > value.max + 1) {
return xbarCL.ucl + 0.5;
} else {
return value.max + 1;
}
},
max: function(value) {
return value.max + 1;
min: function(value) {
if (xbarCL.lcl < value.min - 1) {
return xbarCL.lcl - 0.5;
} else {
return value.min - 1;
}
},
splitLine: { show: false },
nameTextStyle: {
padding: 25,
padding: 38,
},
nameLocation: "middle",
position: "left",
@@ -572,8 +581,6 @@ export default {
},
],
};
console.log(this.mrGraphEntity)
console.log(this.lowLine[this.lineIndex].rules)
this.mrGraphEntity.list?.forEach((item, index) => {
if (item[this.lowLine[this.lineIndex].rules].length) {
option.visualMap[1].pieces.push({