修改波形样式

This commit is contained in:
guanj
2025-11-27 15:25:33 +08:00
parent e824f4823a
commit 800ec7f0cf
4 changed files with 383 additions and 289 deletions

View File

@@ -615,7 +615,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
enabled: true,
itemDistance: 5,
textStyle: {
fontSize: '14px',
fontSize: '12px',
color: props.DColor ? '#000' : echartsColor.WordColor,
rich: { a: { verticalAlign: 'middle' } },
padding: [0, 0, 0, 0]
@@ -641,13 +641,13 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
title: {
text: 'ms',
textStyle: {
fontSize: '14px',
fontSize: '12px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
enabled: true,
align: 'high'
},
nameTextStyle: { fontSize: '14px' },
nameTextStyle: { fontSize: '12px' },
labels: {
formatter: function () {
return this.value
@@ -662,7 +662,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
onZero: false
},
axisLabel: {
fontSize: '14px',
fontSize: '12px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
if (valA.value != (value - 0).toFixed(0)) {
@@ -689,7 +689,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
showLastLabel: true,
opposite: false,
nameTextStyle: {
fontSize: '14px',
fontSize: '12px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
axisLine: {
@@ -700,7 +700,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
onZero: false
},
axisLabel: {
fontSize: '14px',
fontSize: '12px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
return (value - 0).toFixed(2)
@@ -718,7 +718,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
left: '1%',
right: '45px',
bottom: '40px',
top: '70px',
top: '60px',
containLabel: true
},
dataZoom: [
@@ -780,7 +780,7 @@ const initWave = (waveDatas: WaveData[] | null, time: string | null, type: strin
show: true,
position: [5, -20],
color: '#000',
fontSize: '14px',
fontSize: '12px',
fontWeight: 'bold',
borderType: 'solid',
borderWidth: 0.5,
@@ -917,7 +917,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
enabled: true,
itemDistance: 5,
textStyle: {
fontSize: '14px',
fontSize: '12px',
color: props.DColor ? '#000' : echartsColor.WordColor,
rich: { a: { verticalAlign: 'middle' } },
padding: [0, 0, 0, 0]
@@ -932,7 +932,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
title: {
text: 'ms',
textStyle: {
fontSize: '14px',
fontSize: '12px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
enabled: true,
@@ -943,7 +943,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
return this.value
}
},
nameTextStyle: { fontSize: '14px' },
nameTextStyle: { fontSize: '12px' },
splitLine: { show: false },
axisTick: { alignWithLabel: true },
axisLine: {
@@ -953,7 +953,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
onZero: false
},
axisLabel: {
fontSize: '14px',
fontSize: '12px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
if (valB.value != (value - 0).toFixed(0)) {
@@ -978,7 +978,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
showLastLabel: true,
opposite: false,
nameTextStyle: {
fontSize: '14px',
fontSize: '12px',
color: props.DColor ? '#000' : echartsColor.WordColor
},
axisLine: {
@@ -989,7 +989,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
onZero: false
},
axisLabel: {
fontSize: '14px',
fontSize: '12px',
color: props.DColor ? '#000' : echartsColor.WordColor,
formatter: function (value: number) {
return (value - 0).toFixed(2)
@@ -1007,7 +1007,7 @@ const drawPics = (waveDataTemp: WaveData, picHeight: string, step: number, show:
left: '1%',
right: '45px',
bottom: '40px',
top: '70px',
top: '60px',
containLabel: true
},
dataZoom: [