更新
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user