style:完善样式

This commit is contained in:
zjc
2024-12-13 10:50:09 +08:00
parent b32c2e04d6
commit cc9782e007

View File

@@ -29,6 +29,12 @@
let lineChart = null
let defaultCofig = {
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross'
}
},
grid: {
left: '2%',
right: '2%',
@@ -69,74 +75,12 @@
}
}
},
visualMap: {
show: false,
dimension: 0,
pieces: [
{
lte: 6,
color: 'green'
},
{
gt: 6,
lte: 8,
color: 'red'
},
{
gt: 8,
lte: 14,
color: 'green'
},
{
gt: 14,
lte: 17,
color: 'red'
},
{
gt: 17,
color: 'green'
}
]
},
series: [
{
data: [],
type: 'line',
smooth: true,
symbol: 'none',
markArea: {
itemStyle: {
color: 'rgba(255, 173, 177, 0)'
},
data: [
[
{
xAxis: '10:00'
},
{
xAxis: '10:05'
},
{
xAxis: '10:10'
},
{
xAxis: '10:15'
},
{
xAxis: '10:20'
},
{
xAxis: '10:25'
},
{
xAxis: '10:30'
},
{
xAxis: '10:35'
}
]
]
},
lineStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{