完善页面

This commit is contained in:
2026-02-04 09:14:37 +08:00
parent 3476c006e6
commit df642813c3
16 changed files with 3376 additions and 322 deletions

View File

@@ -75,7 +75,8 @@ export default {
name: s.name,
type: 'line',
smooth: true,
symbolSize: 6,
showSymbol: false,
symbolSize: 0,
itemStyle: { color: s.color },
lineStyle: { width: 2 },
data: s.data
@@ -83,19 +84,26 @@ export default {
})
const option = {
grid: { left: 50, right: 30, top: 20, bottom: 40 },
tooltip: { trigger: 'axis' },
grid: { left: 50, right: 30, top: 40, bottom: 60 },
tooltip: {
show: true,
trigger: 'axis',
confine: true,
backgroundColor: 'rgba(255, 255, 255, 0.9)',
textStyle: { color: '#666', fontSize: 12 }
},
legend: {
show: true,
top: 0,
left: 'center',
right: 20,
itemWidth: 12,
itemHeight: 2,
textStyle: { fontSize: 12, color: '#333' }
textStyle: { fontSize: 11, color: '#666' }
},
xAxis: {
type: 'category',
boundaryGap: false,
data: this.xLabels,
data: this.xLabels.map(s => String(s)),
axisLine: { lineStyle: { color: 'rgba(0,0,0,0.1)' } },
axisLabel: {
color: 'rgba(0,0,0,0.45)',