|
|
@ -64,21 +64,21 @@ const generateGraphics = (min, max) => { |
|
|
|
}); |
|
|
|
} |
|
|
|
// y轴数值(顶部位置) |
|
|
|
if (isFullyVisible) { |
|
|
|
graphics.push({ |
|
|
|
type: "text", |
|
|
|
left: '13%', // 向右调整位置 |
|
|
|
top: getNumberTop(min, max, region.max), |
|
|
|
// top: 100, |
|
|
|
style: { |
|
|
|
text: region.max.toString(), |
|
|
|
fill: region.NumberColor, |
|
|
|
fontSize: 12, |
|
|
|
fontWeight: "bold", |
|
|
|
}, |
|
|
|
z: 3, |
|
|
|
}); |
|
|
|
} |
|
|
|
// if (isFullyVisible) { |
|
|
|
// graphics.push({ |
|
|
|
// type: "text", |
|
|
|
// left: '13%', // 向右调整位置 |
|
|
|
// top: getNumberTop(min, max, region.max), |
|
|
|
// // top: 100, |
|
|
|
// style: { |
|
|
|
// text: region.max.toString(), |
|
|
|
// fill: region.NumberColor, |
|
|
|
// fontSize: 12, |
|
|
|
// fontWeight: "bold", |
|
|
|
// }, |
|
|
|
// z: 3, |
|
|
|
// }); |
|
|
|
// } |
|
|
|
return graphics; |
|
|
|
}); |
|
|
|
}; |
|
|
|