From 8a0feaf802e54122259809e9ae04d1a4e273337a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Fri, 27 Jun 2025 10:24:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=85=E7=BB=AA=E5=A4=A7=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E8=82=A1=E5=B8=82=E6=B8=A9=E5=BA=A6=E8=AE=A1=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E7=9A=84dataZoom=E4=B8=8B=E8=B0=835%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/marketTemperature.vue | 34 +++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/views/components/marketTemperature.vue b/src/views/components/marketTemperature.vue index 59c1ff8..a72239c 100644 --- a/src/views/components/marketTemperature.vue +++ b/src/views/components/marketTemperature.vue @@ -239,17 +239,17 @@ function initChart(raw, klineDataRawValue, WDRLValue) { return '' } }, - legend: { data: ['K线', '市场温度', '股票温度'], textStyle: { color: 'white',fontSize: 18 }}, + legend: { data: ['K线', '市场温度', '股票温度'], textStyle: { color: 'white', fontSize: 18 } }, xAxis: { type: 'category', data: dateLabels, axisLine: { lineStyle: { color: '#00BFFF' } }, - axisLabel: { + axisLabel: { color: '#FFFFFF', fontSize: 12, fontWeight: 'bold' }, - + axisTick: { lineStyle: { color: '#00BFFF' } }, axisPointer: { show: true, @@ -260,16 +260,16 @@ function initChart(raw, klineDataRawValue, WDRLValue) { type: 'dashed' }, label: { - show: true, - color: 'black' - }, + show: true, + color: 'black' + }, } }, yAxis: [{ min: yAxisMin, max: yAxisMax, axisLine: { lineStyle: { color: '#00FF7F' } }, - axisLabel: { + axisLabel: { color: '#FFFFFF', fontSize: 12, fontWeight: 'bold' @@ -287,9 +287,9 @@ function initChart(raw, klineDataRawValue, WDRLValue) { show: true, type: 'line', label: { - show: true, - color: 'black' - }, + show: true, + color: 'black' + }, lineStyle: { color: '#999', width: 1, @@ -300,7 +300,7 @@ function initChart(raw, klineDataRawValue, WDRLValue) { min: 0, max: 100, position: 'right', - axisLabel: { + axisLabel: { color: '#FFFF00', fontSize: 12, fontWeight: 'bold' @@ -324,9 +324,9 @@ function initChart(raw, klineDataRawValue, WDRLValue) { type: 'dashed' }, label: { - show: true, - color: 'black' - }, + show: true, + color: 'black' + }, } }], color: ['#f00', 'white'], @@ -366,14 +366,14 @@ function initChart(raw, klineDataRawValue, WDRLValue) { filterMode: 'filter', textStyle: { color: 'white' - } + }, + bottom: "5%", // 下移数据缩放滑块 }, { type: 'inside', xAxisIndex: 0, filterMode: 'filter' - } - ] + }] }) // 监听窗口大小变化 const resizeHandler = () => {