yujingqushi.js
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
var chartDom = document.getElementById('area');
var myChart = echarts.init(chartDom);
var option;
option = {
// width:'90%',
// height:'90%',
grid:{
top:'5%',
left:'5%',
bottom:'15%',
},
tooltip: {
trigger:'axis',
axisPointer: {
type: 'shadow'
}
},
calcuabel:true,
xAxis: {
color:['#fff'],
splitLine:{
show:false,
lineStyle:{
color:['#5456CB'],
width:1,
type:'solid',
},
},
axisLine:{
show:false,
// lineStyle:{
// color:'#5456CB',
// }
},
axisLabel:{
textStyle:{
color:'#fff',
fontSize:14,
}
},
axisTick: {
show: false
},
type: 'category',
boundaryGap: false,
// data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
color:['#fff'],
splitLine:{
show:false,
lineStyle:{
color:['#5456CB'],
width:1,
type:'solid',
},
},
axisLine:{
show:false,
// lineStyle:{
// color:'#5456CB',
// }
},
axisLabel:{
show:false,
// textStyle:{
// color:'#fff',
// fontSize:14,
// }
},
axisTick: {
show: false
},
type: 'value',
},
series: [
{
color:['#7EA0F3'],
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line',
// center: ["35%", "53%"],
areaStyle: {},
},
// markLine:{
// data:[
// {symbol:'none',x:'90%',yAxis:'max'},
// {symbol:'circle',label:{position:'start',formatter:'Max'},
// type:'max',name:''},
// ]
// },
]
};
option && myChart.setOption(option);