From 3d83bea8a8c63373938c265cbe2b88f3e2807d22 Mon Sep 17 00:00:00 2001 From: surida <992917574@qq.com> Date: Tue, 16 Jul 2024 10:35:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=A3=E7=82=B9=E5=9B=BE=E5=8A=A0=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E8=BD=B4=E5=92=8C=E7=82=B9=E5=A4=A7=E5=B0=8F=E6=8E=A7?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/BetaGammaSpectrum.vue | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/views/spectrumAnalysis/components/BetaGammaSpectrum.vue b/src/views/spectrumAnalysis/components/BetaGammaSpectrum.vue index 02a3b65..ec2b416 100644 --- a/src/views/spectrumAnalysis/components/BetaGammaSpectrum.vue +++ b/src/views/spectrumAnalysis/components/BetaGammaSpectrum.vue @@ -521,11 +521,28 @@ export default { }, // 构造scatter列表 buildScatterList() { + console.log(this.twoDOption) const { xAxis: { min: minX, max: maxX }, yAxis: { min: minY, max: maxY }, } = this.twoDOption + //点大小 + this.twoDOption.series[0].symbolSize = 5 + // + this.twoDOption.visualMap = { + min: 512, + max: minY, + dimension: 1, + orient: 'vertical', + right: 10, + top: 'center', + text: ['HIGH', 'LOW'], + calculable: true, + inRange: { + color: ['#ffffff', '#ff0000'] + } + }, this.twoDOption.series[0].data = this.histogramDataList .filter(({ b, g, c }) => c && b >= minX && b <= maxX && g >= minY && g <= maxY) .map(({ b, g, c }) => this.buildScatterItem(b, g, c)) @@ -536,9 +553,9 @@ export default { const { r, g, b } = this.interpolateColor(1 - count / this.currCount) return { value: [xAxis, yAxis], - itemStyle: { - color: `rgb(${r}, ${g}, ${b})`, - }, + // itemStyle: { + // color: `rgb(${r}, ${g}, ${b})`, + // }, } }, // 重绘矩形框区域