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}` } },