Browse Source

解决情绪探底雷达第一个网格y轴数值出现多个相同值的问题。

dev
宋杰 15 hours ago
parent
commit
753c381b80
  1. 4
      src/views/components/emotionalBottomRadar.vue

4
src/views/components/emotionalBottomRadar.vue

@ -402,6 +402,7 @@ function initEmotionalBottomRadar(KlineData, barAndLineData) {
splitNumber: 4, splitNumber: 4,
min: yAxisMin, // y min: yAxisMin, // y
max: yAxisMax, // y max: yAxisMax, // y
interval: (yAxisMax - yAxisMin) / 4, //
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: 'white' // y color: 'white' // y
@ -414,7 +415,8 @@ function initEmotionalBottomRadar(KlineData, barAndLineData) {
width: 50, // width: 50, //
color: 'white', color: 'white',
formatter: function (value, index) { formatter: function (value, index) {
return Math.round(value)
//
return value.toFixed(1);
} }
}, },
splitLine: { splitLine: {

Loading…
Cancel
Save