diff --git a/src/views/spectrumAnalysis/components/RoiLimits.vue b/src/views/spectrumAnalysis/components/RoiLimits.vue index 2e168f4..b993057 100644 --- a/src/views/spectrumAnalysis/components/RoiLimits.vue +++ b/src/views/spectrumAnalysis/components/RoiLimits.vue @@ -30,9 +30,29 @@ const roiLimitsOption = { tooltip: { show: true, trigger: 'axis', + formatter: (params) => { + let content = '' + params.forEach((item) => { + // 提示框的内容样式及数据 + content += ` + + Channel ${item.axisValueLabel}
+ + ${item.value[1]} + ` + }) + return content + }, }, xAxis: { type: 'category', + name: 'Gamma Channel', + nameTextStyle: { + color: '#5b9cba', + fontSize: 16, + }, + nameLocation: 'center', + nameGap: 30, boundaryGap: false, splitLine: { show: true, @@ -56,6 +76,13 @@ const roiLimitsOption = { }, yAxis: { type: 'value', + name: 'Count', + nameTextStyle: { + color: '#5b9cba', + fontSize: 16, + }, + nameLocation: 'center', + nameGap: 40, splitLine: { lineStyle: { color: 'rgba(119, 181, 213, .3)',