@@ -459,6 +459,14 @@ export const widgetLineStack = {
placeholder: '',
value: true,
},
+ {
+ type: 'el-input-text',
+ label: '最大值',
+ name: 'maxY',
+ required: false,
+ placeholder: '',
+ value: '',
+ },
{
type: 'el-input-text',
label: '坐标名',
@@ -451,6 +451,14 @@ export const widgetLinechart = {
@@ -176,6 +176,7 @@ export default {
setOptionsY() {
const optionsSetup = this.optionsSetup;
const yAxis = {
+ max: optionsSetup.maxY !== "" ? optionsSetup.maxY : null,
type: "value",
scale: optionsSetup.scale,
// 均分
@@ -190,6 +190,7 @@ export default {