diff --git a/nezha-fronted/src/components/chart/chart.vue b/nezha-fronted/src/components/chart/chart.vue index b4f28f687..862f804e4 100644 --- a/nezha-fronted/src/components/chart/chart.vue +++ b/nezha-fronted/src/components/chart/chart.vue @@ -297,7 +297,6 @@ export default { this.chartChildrenData = flag }, resize () { - console.log(this.$refs['chart' + this.chartInfo.id]) this.$refs['chart' + this.chartInfo.id] && this.$refs['chart' + this.chartInfo.id].resize() }, refreshLogs (params) { diff --git a/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue b/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue index ba8f082b7..75bb0c083 100644 --- a/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue +++ b/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue @@ -331,7 +331,6 @@ export default { } }, resize () { - console.log(213) setTimeout(() => { getChart(this.chartId) && getChart(this.chartId).resize() }, 100) diff --git a/nezha-fronted/src/components/charts/chartDataFormat.js b/nezha-fronted/src/components/charts/chartDataFormat.js index a00fd0d7b..7be42b71a 100644 --- a/nezha-fronted/src/components/charts/chartDataFormat.js +++ b/nezha-fronted/src/components/charts/chartDataFormat.js @@ -34,7 +34,7 @@ function percent02 (value, index) { if (!numberWithEConvent(scientificNotationValue)) { return `${scientificNotationValue} %` } - value = parseFloat(keepDoubleNumber(Number(value) * 100)) + value = parseFloat(keepDoubleNumber((Number(value) * 100).toFixed(2))) return `${value} %` } function localFormat (value, index) { @@ -728,7 +728,7 @@ export default { pow++ value = value * 10 } - return Math.ceil(value + 1) / Math.pow(10, pow) + return Math.floor(value + 1) / Math.pow(10, pow) } if (type === 'Time') { return value