From b4463582b0aed9a9f23ec6983e95498dd3e6c33a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Fri, 19 Sep 2025 11:41:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=85=E7=BB=AA=E8=A7=A3=E7=A0=81=E5=99=A8to?= =?UTF-8?q?oltip=E4=BC=98=E5=8C=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/emotionDecod.vue | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/views/components/emotionDecod.vue b/src/views/components/emotionDecod.vue index 76a1bf6..2c35a2e 100644 --- a/src/views/components/emotionDecod.vue +++ b/src/views/components/emotionDecod.vue @@ -72,10 +72,30 @@ function initQXNLZHEcharts(kline, qxnlzhqData) { confine: true, // 限制tooltip不超出容器 axisPointer: { type: 'cross', // 十字准星效果 + lineStyle: { + color: 'grey', + width: 1, + type: 'dashed' + }, crossStyle: { color: '#999' - } + }, + label: { + backgroundColor: 'rgba(0, 0, 0, 0.8)', + color: '#fff', + borderColor: '#fff', + borderWidth: 1 + } }, + backgroundColor: 'rgba(232, 232, 242, 0.87)', + borderColor: '#fff', + borderWidth: 1, + borderRadius: 8, + padding: 10, + textStyle: { + color: 'black', + fontSize: 12 + }, formatter: function (params) { if (!params || params.length === 0) return '' @@ -89,7 +109,7 @@ function initQXNLZHEcharts(kline, qxnlzhqData) { const close = klineParam.data[2] const low = klineParam.data[3] const high = klineParam.data[4] - return `日期: ${date}
开盘价: ${open}
收盘价: ${close}
最低价: ${low}
最高价: ${high}` + return `日期: ${date}
开盘价: ${open}
收盘价: ${close}
最低价: ${low}
最高价: ${high}` } },