Browse Source

修改k线图的显示问题和图片,文字大小

hongxilin/hotfix-20250625101643-手机输入法弹出输入框上浮
dongqian 1 week ago
parent
commit
e073171799
  1. 8
      src/views/AiEmotion.vue
  2. 14
      src/views/components/emotionalBottomRadar.vue

8
src/views/AiEmotion.vue

@ -1439,7 +1439,8 @@ defineExpose({
display: block;
color: #FFD700;
font-weight: bold;
margin-bottom: 10px;
margin-top: 0px;
margin-bottom: 20px;
font-size: 22px;
}
@ -1447,6 +1448,7 @@ defineExpose({
display: block;
color: white;
font-size: 20px;
text-align: center;
}
@ -1604,7 +1606,7 @@ defineExpose({
background-repeat: no-repeat;
width: 70%;
height: 400px;
min-height: 400px;
min-height: 35rem;
text-align: center;
margin: 0 auto;
margin-top: 3%;
@ -1621,7 +1623,7 @@ defineExpose({
background-repeat: no-repeat;
width: 95%;
height: auto;
min-height: 40rem;
min-height: 50rem;
margin: 0 auto;
}

14
src/views/components/emotionalBottomRadar.vue

@ -38,9 +38,14 @@ function initEmotionalBottomRadar(KlineData, barAndLineData) {
}
})
// 10
let minValue = Math.min(...allKlineValues.filter(val => typeof val === 'number' && !isNaN(val)))
let yAxisMin = Math.floor(minValue / 10) * 10
//
let validValues = allKlineValues.filter(val => typeof val === 'number' && !isNaN(val))
let minValue = Math.min(...validValues)
let maxValue = Math.max(...validValues)
//
let yAxisMin = Math.floor(minValue)
let yAxisMax = Math.ceil(maxValue)
// 线
let redLineDataArray = barAndLineData.map(subArray => subArray[1])
//
@ -348,7 +353,8 @@ function initEmotionalBottomRadar(KlineData, barAndLineData) {
type: 'value',
gridIndex: 0,
splitNumber: 4,
min: yAxisMin, // y10
min: yAxisMin, // y
max: yAxisMax, // y
axisLine: {
lineStyle: {
color: 'white' // y

Loading…
Cancel
Save