修改bug
This commit is contained in:
@@ -175,6 +175,14 @@ export default {
|
||||
{
|
||||
type: "value",
|
||||
name: "单位/MW",
|
||||
// splitNumber: 5,
|
||||
min: function (value) {//取最小值向下取整为最小刻度
|
||||
return 0
|
||||
},
|
||||
max: function (value) {//取最大值向上取整为最大刻度
|
||||
return Math.ceil(value.max)
|
||||
},
|
||||
alignTicks: true,
|
||||
nameTextStyle: {
|
||||
fontSize: 12,
|
||||
align: "right",
|
||||
@@ -183,7 +191,13 @@ export default {
|
||||
},
|
||||
{
|
||||
type: 'value',
|
||||
alignTicks: true,
|
||||
min: 0,
|
||||
max: 100,
|
||||
// scale: true,
|
||||
interval: 25,//间隔
|
||||
// inverse: true,
|
||||
splitNumber: 5,
|
||||
name: "单位/%",
|
||||
nameTextStyle: {
|
||||
fontSize: 12,
|
||||
@@ -235,7 +249,7 @@ export default {
|
||||
type: "value",
|
||||
name: "单位/片",
|
||||
min: function (value) {//取最小值向下取整为最小刻度
|
||||
return Math.floor(value.min)
|
||||
return 0
|
||||
},
|
||||
max: function (value) {//取最大值向上取整为最大刻度
|
||||
return Math.ceil(value.max)
|
||||
@@ -258,8 +272,8 @@ export default {
|
||||
min: 0,
|
||||
max: 100,
|
||||
// scale: true,
|
||||
interval: 20,//间隔
|
||||
// splitNumber: 8,
|
||||
interval: 25,//间隔
|
||||
// splitNumber: 5,
|
||||
nameTextStyle: {
|
||||
fontSize: 12,
|
||||
align: "right",
|
||||
|
||||
Reference in New Issue
Block a user