Skip to content

Commit 4f34578

Browse files
author
jialong.wang
committed
fix: monitor bug
1 parent 3042bc5 commit 4f34578

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web/src/components/Echarts/line.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ export const cpuOptions: EChartsOption = {
1111
// },
1212
tooltip: {
1313
trigger: 'axis',
14+
formatter: function (params: any) {
15+
params = params[0]
16+
return params.value[1] + '%'
17+
},
1418
axisPointer: {
1519
type: 'cross',
1620
label: {

0 commit comments

Comments
 (0)