From 4b6e09b47ad65ea3ff66e095e94789478880b17d Mon Sep 17 00:00:00 2001 From: ngfchl Date: Wed, 7 Dec 2022 16:42:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=9B=BE=E8=A1=A8=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/auto_pt/status.html | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/templates/auto_pt/status.html b/templates/auto_pt/status.html index 88fa122..777d8bf 100644 --- a/templates/auto_pt/status.html +++ b/templates/auto_pt/status.html @@ -352,7 +352,7 @@ {#

-历史数据

#} {# #}
- @@ -573,14 +573,14 @@ }, showAllIncrementHistory(data) { let option = { - //title: { - // text: site.name, - // textStyle: { - // color: 'orangered', - // }, - // left: 'center', - // top: '3%', - //}, + title: { + text: '每日增量--全部站点', + textStyle: { + color: 'orangered', + }, + left: 'center', + top: '3%', + }, tooltip: { show: true, trigger: 'axis', @@ -594,7 +594,7 @@ let total = 0 params.forEach((param, index) => { let temp = param.value == 0 ? '' : ` -
+
${param.seriesName}: ${renderSize(param.value)}
@@ -615,7 +615,7 @@ return `
${total_str}
` }, position: function (point, params, dom, rect, size) { - console.log(point) + // console.log(point) return [point[1], 8] }, order: 'valueDesc', @@ -623,14 +623,19 @@ extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);', // 附加阴影样式 }, legend: { - show: false, - top: '3%', + show: true, + {#top: '3%',#} left: 'center', + bottom: '12', + tooltip: { + show: true + }, + }, grid: { left: '3%', right: '4%', - bottom: '3%', + bottom: '25%', containLabel: true }, toolbox: {