Browse Source

情绪大模型股市温度计图表的dataZoom下调5%

songjie/feature-20250628160649-上线前优化
宋杰 5 days ago
parent
commit
8a0feaf802
  1. 34
      src/views/components/marketTemperature.vue

34
src/views/components/marketTemperature.vue

@ -239,17 +239,17 @@ function initChart(raw, klineDataRawValue, WDRLValue) {
return '' return ''
} }
}, },
legend: { data: ['K线', '市场温度', '股票温度'], textStyle: { color: 'white',fontSize: 18 }},
legend: { data: ['K线', '市场温度', '股票温度'], textStyle: { color: 'white', fontSize: 18 } },
xAxis: { xAxis: {
type: 'category', type: 'category',
data: dateLabels, data: dateLabels,
axisLine: { lineStyle: { color: '#00BFFF' } }, axisLine: { lineStyle: { color: '#00BFFF' } },
axisLabel: {
axisLabel: {
color: '#FFFFFF', color: '#FFFFFF',
fontSize: 12, fontSize: 12,
fontWeight: 'bold' fontWeight: 'bold'
}, },
axisTick: { lineStyle: { color: '#00BFFF' } }, axisTick: { lineStyle: { color: '#00BFFF' } },
axisPointer: { axisPointer: {
show: true, show: true,
@ -260,16 +260,16 @@ function initChart(raw, klineDataRawValue, WDRLValue) {
type: 'dashed' type: 'dashed'
}, },
label: { label: {
show: true,
color: 'black'
},
show: true,
color: 'black'
},
} }
}, },
yAxis: [{ yAxis: [{
min: yAxisMin, min: yAxisMin,
max: yAxisMax, max: yAxisMax,
axisLine: { lineStyle: { color: '#00FF7F' } }, axisLine: { lineStyle: { color: '#00FF7F' } },
axisLabel: {
axisLabel: {
color: '#FFFFFF', color: '#FFFFFF',
fontSize: 12, fontSize: 12,
fontWeight: 'bold' fontWeight: 'bold'
@ -287,9 +287,9 @@ function initChart(raw, klineDataRawValue, WDRLValue) {
show: true, show: true,
type: 'line', type: 'line',
label: { label: {
show: true,
color: 'black'
},
show: true,
color: 'black'
},
lineStyle: { lineStyle: {
color: '#999', color: '#999',
width: 1, width: 1,
@ -300,7 +300,7 @@ function initChart(raw, klineDataRawValue, WDRLValue) {
min: 0, min: 0,
max: 100, max: 100,
position: 'right', position: 'right',
axisLabel: {
axisLabel: {
color: '#FFFF00', color: '#FFFF00',
fontSize: 12, fontSize: 12,
fontWeight: 'bold' fontWeight: 'bold'
@ -324,9 +324,9 @@ function initChart(raw, klineDataRawValue, WDRLValue) {
type: 'dashed' type: 'dashed'
}, },
label: { label: {
show: true,
color: 'black'
},
show: true,
color: 'black'
},
} }
}], }],
color: ['#f00', 'white'], color: ['#f00', 'white'],
@ -366,14 +366,14 @@ function initChart(raw, klineDataRawValue, WDRLValue) {
filterMode: 'filter', filterMode: 'filter',
textStyle: { textStyle: {
color: 'white' color: 'white'
}
},
bottom: "5%", //
}, },
{ {
type: 'inside', type: 'inside',
xAxisIndex: 0, xAxisIndex: 0,
filterMode: 'filter' filterMode: 'filter'
}
]
}]
}) })
// //
const resizeHandler = () => { const resizeHandler = () => {

Loading…
Cancel
Save