caoziwu 1 неделя назад
Родитель
Сommit
fd8b4c562a
1 измененных файлов с 3 добавлено и 8 удалено
  1. 3 8
      src/renderer/src/lib/speaker/echarts/diagramOption.ts

+ 3 - 8
src/renderer/src/lib/speaker/echarts/diagramOption.ts

@@ -172,7 +172,7 @@ export function buildDiagramOption(
       itemStyle: { color: pt.c, borderColor: pal.bg, borderWidth: 1.5 },
       label: {
         show: true,
-        position: 'top',
+        position: 'right',
         formatter: (params: DefaultLabelFormatterCallbackParams) => {
           const v = (params.data as { value: [number, number, string] }).value
           return `${v[2]} dB\n${(params.data as { name: string }).name} = ${v[0].toFixed(1)}m`
@@ -199,7 +199,7 @@ export function buildDiagramOption(
       name: labels.coverage,
       data: arcData,
       showSymbol: false,
-      lineStyle: { color: '#ffd54f', width: 1.6, opacity: 0.85 },
+      lineStyle: { color: '#ffd54f', width: 1.6, opacity: 1 },
       silent: true,
       z: 4
     } as SeriesOption)
@@ -235,7 +235,7 @@ export function buildDiagramOption(
       name: '安装倾斜角 A',
       data: aArcData,
       showSymbol: false,
-      lineStyle: { color: pal.text, width: 1, opacity: 0.65 },
+      lineStyle: { color: pal.text, width: 1, opacity: 0.85 },
       silent: true,
       z: 4,
       tooltip: { show: false }
@@ -269,11 +269,6 @@ export function buildDiagramOption(
       text: `${labels.vertical} V = ${cov.toFixed(0)}° · θ₋₆ = ${t6.toFixed(0)}°`,
       textStyle: { color: pal.dim, fontSize: 11, fontWeight: 'normal' }
     },
-    tooltip: {
-      trigger: 'axis',
-      axisPointer: { type: 'line' },
-      confine: true
-    },
     xAxis: {
       type: 'value',
       min: 0,