Browse Source

Y轴刻度及坐标展示

zhaowenkang/feature-20250701110203-情绪量能转化器优化
zhaowenkang 20 hours ago
parent
commit
3d48b8d826
  1. 15
      src/views/components/emoEnergyConverter.vue

15
src/views/components/emoEnergyConverter.vue

@ -175,10 +175,6 @@ function initQXNLZHEcharts(kline, qxnlzhqData) {
const priceValues = kline.flatMap(item => [item[1], item[2], item[3], item[4]]);
const dataMin = Math.min(...priceValues);
const dataMax = Math.max(...priceValues);
// K线
const lastKLine = mixData[mixData.length - 1];
const lastHigh = lastKLine.value[2]; //
const lastLow = lastKLine.value[3]; //
//
const stopProfitPrice = Number(qxnlzhqData.cc) * 1.05; //
const stopLossPrice = Number(qxnlzhqData.cc) * 0.97; //
@ -385,16 +381,19 @@ const lastLow = lastKLine.value[3]; // 最低价
// show: false,
lineStyle: {
color: 'white', // x线
width:3
}
},
splitLine: {
show: false,
},
axisLabel: { //
show: false //
show: true,
color:'white',
},
axisTick: { // 线
show: false // 线
show: true,
color:'white',
},
min:
qxnlzhqData.dd < stopLossPrice * 0.98
@ -583,7 +582,7 @@ const lastLow = lastKLine.value[3]; // 最低价
textBorderWidth: 2,
}
},
offset: [20, 10]
offset: [0, 10]
}
}
}
@ -623,7 +622,7 @@ const lastLow = lastKLine.value[3]; // 最低价
textBorderWidth: 2,
}
},
offset: [20, -10]
offset: [0, -10]
}
}
}

Loading…
Cancel
Save