-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathechart.js
41 lines (40 loc) · 800 Bytes
/
echart.js
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
option = {
xAxis: {
type: 'category',
boundaryGap: false,
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [
{
data: [820, 932, 901, 934, 1290, 1330, 1320],
areaStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: 'rgba(58,77,233,0.8)'
},
{
offset: 1,
color: 'rgba(58,77,233,0.3)'
}
])
},
type: 'line',
symbol: 'circle',
symbolSize: 10,
lineStyle: {
color: '#5470C6',
width: 1
// type: 'dashed'
},
itemStyle: {
borderWidth: 1,
borderColor: '#EE6666',
color: 'yellow'
}
}
]
}