From bf5ba414d8f1c3e967e0c6322cae0ccaf6737403 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Wed, 14 Dec 2022 21:10:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AB=99=E7=82=B9=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E4=BF=A1=E6=81=AF=E6=98=BE=E7=A4=BA=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E9=83=A8=E5=88=86=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/auto_pt/status.html | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/templates/auto_pt/status.html b/templates/auto_pt/status.html index bcb0abe..1603059 100644 --- a/templates/auto_pt/status.html +++ b/templates/auto_pt/status.html @@ -376,7 +376,7 @@ 一年 全部 - 图例 @@ -1374,14 +1374,24 @@ type: 'line', yAxisIndex: 1, {#stack: 'Total',#} - data: ratioList + data: ratioList, + tooltip: { + show: true, + trigger: 'axis', + //formatter: function (params) { + // return params.name + '\t' + renderSize(params.data.value) + //}, + valueFormatter: function (value) { + return numberFormat(value) + } + }, }] //option.tooltip.valueFormatter = function (value) { // return numberFormat(value) //} - //option.yAxis.axisLabel.formatter = function (value) { - // return numberFormat(value) - //} + option.yAxis[0].axisLabel.formatter = function (value) { + return numberFormat(value) + } this.setChartOption(this.$refs.bonus_charts.chart, option) {#option.title.text = `${site.name} - 分享率`#} option.series = [{