From a8386495912efb8292ee7714b9fe8af2025be3b2 Mon Sep 17 00:00:00 2001 From: wangwenrui Date: Mon, 25 May 2020 16:21:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:1.=E4=BF=AE=E5=A4=8Dexplore=20=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA=E7=9A=84bug=202.e?= =?UTF-8?q?xplore=E5=9B=BE=E8=A1=A8=E6=82=AC=E6=B5=AE=E6=97=B6=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/charts/chartDataFormat.js | 1 + .../src/components/page/dashboard/explore/explore.vue | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/charts/chartDataFormat.js b/nezha-fronted/src/components/charts/chartDataFormat.js index 0694f817a..8d72ff2d2 100644 --- a/nezha-fronted/src/components/charts/chartDataFormat.js +++ b/nezha-fronted/src/components/charts/chartDataFormat.js @@ -255,6 +255,7 @@ function days(value,index,type=1){ * unitIndex:不需要传递,用于递归获取units中的单位 * */ function asciiCompute(num,ascii,units,dot=2,unitIndex=0){ + num=Number(num) let quotient=num / ascii; if(unitIndex <= units.length-1){ if(quotient <1 ){ //不足以进位 diff --git a/nezha-fronted/src/components/page/dashboard/explore/explore.vue b/nezha-fronted/src/components/page/dashboard/explore/explore.vue index 52f0d3e5e..db508be6a 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/explore.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/explore.vue @@ -304,7 +304,9 @@ instance_cpu_time_ns{app="fox", proc="widget", rev="4d3a513", env="prod", job="c data.forEach((result, i) => { let seriesItem = { name: '', - symbol: 'none', //去掉点 + symbol:'emptyCircle', //去掉点 + symbolSize:[2,2], + showSymbol:false, smooth: 0.2, //曲线变平滑 data: [], type: 'line',