fix: 修复Network Overview apps 部分逻辑及折线图移入弹出框样式

This commit is contained in:
@changcode
2022-11-09 17:44:48 +08:00
parent e355eb31cd
commit e996963635
2 changed files with 4 additions and 4 deletions

View File

@@ -400,18 +400,18 @@ export default {
...chartOption.series[0], ...chartOption.series[0],
data: obj.lineData.map(v => [Number(v[0]) * 1000, Number(v[1]), 'number']), data: obj.lineData.map(v => [Number(v[0]) * 1000, Number(v[1]), 'number']),
lineStyle: { lineStyle: {
color: obj.trend === 'up' ? '#7FA054' : '#35ADDA' color: '#35ADDA'
}, },
areaStyle: { areaStyle: {
opacity: 0.1, opacity: 0.1,
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ {
offset: 0, offset: 0,
color: obj.trend === 'up' ? '#7FA054' : '#35ADDA' color: '#35ADDA'
}, },
{ {
offset: 1, offset: 1,
color: obj.trend === 'up' ? '#7FA054' : '#35ADDA' color: '#35ADDA'
} }
]) ])
} }

View File

@@ -294,7 +294,7 @@ export const appListChartOption = {
bottom: 0 bottom: 0
}, },
animation: false, animation: false,
color: chartColor, color: chartColor3[2],
axisLabel: {}, axisLabel: {},
series: [ series: [
{ {