From 00449d77dccf3c241155f7905e29b46d007eb30b Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Thu, 25 Jan 2024 13:22:47 +0800 Subject: [PATCH] up --- public/dashboard/index.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/public/dashboard/index.html b/public/dashboard/index.html index 605bfda..e9af82b 100644 --- a/public/dashboard/index.html +++ b/public/dashboard/index.html @@ -514,7 +514,16 @@ var option4; option4 = { - tooltip:{}, + tooltip:{ + trigger: 'axis', + formatter: function (params) { + let tooltipContent = ''; + params.forEach((param) => { + tooltipContent += `${param.seriesName}: ${param.value}`; + }); + return tooltipContent; + }, + }, color: ['#018fff'], lineStyle: { color: '#018fff'