fix:优化 value小于1的 Y轴表现
This commit is contained in:
@@ -297,7 +297,6 @@ export default {
|
|||||||
this.chartChildrenData = flag
|
this.chartChildrenData = flag
|
||||||
},
|
},
|
||||||
resize () {
|
resize () {
|
||||||
console.log(this.$refs['chart' + this.chartInfo.id])
|
|
||||||
this.$refs['chart' + this.chartInfo.id] && this.$refs['chart' + this.chartInfo.id].resize()
|
this.$refs['chart' + this.chartInfo.id] && this.$refs['chart' + this.chartInfo.id].resize()
|
||||||
},
|
},
|
||||||
refreshLogs (params) {
|
refreshLogs (params) {
|
||||||
|
|||||||
@@ -331,7 +331,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
resize () {
|
resize () {
|
||||||
console.log(213)
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
getChart(this.chartId) && getChart(this.chartId).resize()
|
getChart(this.chartId) && getChart(this.chartId).resize()
|
||||||
}, 100)
|
}, 100)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ function percent02 (value, index) {
|
|||||||
if (!numberWithEConvent(scientificNotationValue)) {
|
if (!numberWithEConvent(scientificNotationValue)) {
|
||||||
return `${scientificNotationValue} %`
|
return `${scientificNotationValue} %`
|
||||||
}
|
}
|
||||||
value = parseFloat(keepDoubleNumber(Number(value) * 100))
|
value = parseFloat(keepDoubleNumber((Number(value) * 100).toFixed(2)))
|
||||||
return `${value} %`
|
return `${value} %`
|
||||||
}
|
}
|
||||||
function localFormat (value, index) {
|
function localFormat (value, index) {
|
||||||
@@ -728,7 +728,7 @@ export default {
|
|||||||
pow++
|
pow++
|
||||||
value = value * 10
|
value = value * 10
|
||||||
}
|
}
|
||||||
return Math.ceil(value + 1) / Math.pow(10, pow)
|
return Math.floor(value + 1) / Math.pow(10, pow)
|
||||||
}
|
}
|
||||||
if (type === 'Time') {
|
if (type === 'Time') {
|
||||||
return value
|
return value
|
||||||
|
|||||||
Reference in New Issue
Block a user