修复组件

This commit is contained in:
lai
2024-01-20 17:46:55 +08:00
parent 5a1d77f186
commit 4ac3e93167
2 changed files with 10 additions and 25 deletions

View File

@@ -139,10 +139,11 @@ const optionData: EChartsOption = {
{ {
type: 'category', type: 'category',
axisLine: { axisLine: {
lineStyle: { show: true,
color: '#32346c', lineStyle: {
}, color: 'rgb(0,253,255,0.6)',
}, },
},
splitLine: { splitLine: {
show: true, show: true,
lineStyle: { lineStyle: {
@@ -158,11 +159,6 @@ const optionData: EChartsOption = {
}, },
axisLabel: { axisLabel: {
inside: false, inside: false,
textStyle: {
color: '#bac0c0',
fontWeight: 'normal',
fontSize: '12',
},
}, },
data: xData, data: xData,
}, },
@@ -175,7 +171,7 @@ const optionData: EChartsOption = {
axisLine: { axisLine: {
show: true, show: true,
lineStyle: { lineStyle: {
color: '#32346c', color: 'rgb(0,253,255,0.6)',
}, },
}, },
splitLine: { splitLine: {
@@ -185,11 +181,6 @@ const optionData: EChartsOption = {
}, },
}, },
axisLabel: { axisLabel: {
textStyle: {
color: '#bac0c0',
fontWeight: 'normal',
fontSize: '12',
},
formatter: '{value}%', formatter: '{value}%',
}, },
}, },

View File

@@ -163,22 +163,21 @@ const optionData: EChartsOption = {
boundaryGap: false, boundaryGap: false,
data: charts.lineX, data: charts.lineX,
axisLabel: { axisLabel: {
textStyle: {
color: 'rgb(0,253,255,0.6)',
},
formatter: function (params: any) { formatter: function (params: any) {
return params.split(' ')[0] + '\n' + params.split(' ')[1]; return params.split(' ')[0] + '\n' + params.split(' ')[1];
}, },
}, },
axisLine: {
lineStyle: {
color: 'rgb(0,253,255,0.6)',
},
},
}, },
yAxis: { yAxis: {
name: charts.unit, name: charts.unit,
type: 'value', type: 'value',
axisLabel: { axisLabel: {
formatter: '{value}', formatter: '{value}',
textStyle: {
color: 'rgb(0,253,255,0.6)',
},
}, },
splitLine: { splitLine: {
lineStyle: { lineStyle: {
@@ -190,11 +189,6 @@ const optionData: EChartsOption = {
color: 'rgb(0,253,255,0.6)', color: 'rgb(0,253,255,0.6)',
}, },
}, },
label: {
normal: {
show: true, //折点显示数值,
},
},
}, },
series: lineY, series: lineY,
}; };