style:完善样式
This commit is contained in:
@@ -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, [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user