Browse Source

Y轴刻度及坐标展示

zhaowenkang/feature-20250701110203-情绪量能转化器优化
zhaowenkang 1 day 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 priceValues = kline.flatMap(item => [item[1], item[2], item[3], item[4]]);
const dataMin = Math.min(...priceValues); const dataMin = Math.min(...priceValues);
const dataMax = Math.max(...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 stopProfitPrice = Number(qxnlzhqData.cc) * 1.05; //
const stopLossPrice = Number(qxnlzhqData.cc) * 0.97; // const stopLossPrice = Number(qxnlzhqData.cc) * 0.97; //
@ -385,16 +381,19 @@ const lastLow = lastKLine.value[3]; // 最低价
// show: false, // show: false,
lineStyle: { lineStyle: {
color: 'white', // x线 color: 'white', // x线
width:3
} }
}, },
splitLine: { splitLine: {
show: false, show: false,
}, },
axisLabel: { // axisLabel: { //
show: false //
show: true,
color:'white',
}, },
axisTick: { // 线 axisTick: { // 线
show: false // 线
show: true,
color:'white',
}, },
min: min:
qxnlzhqData.dd < stopLossPrice * 0.98 qxnlzhqData.dd < stopLossPrice * 0.98
@ -583,7 +582,7 @@ const lastLow = lastKLine.value[3]; // 最低价
textBorderWidth: 2, textBorderWidth: 2,
} }
}, },
offset: [20, 10]
offset: [0, 10]
} }
} }
} }
@ -623,7 +622,7 @@ const lastLow = lastKLine.value[3]; // 最低价
textBorderWidth: 2, textBorderWidth: 2,
} }
}, },
offset: [20, -10]
offset: [0, -10]
} }
} }
} }

Loading…
Cancel
Save