jiangyuliang.js
1.3 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
var chartDom = document.getElementById('Main');
var myChart = echarts.init(chartDom);
var option;
option = {
title: {
},
grid: {
x:40,
y:40,
bottom:40,
x2:20,
y2:90,
// borderWidth:1
},
xAxis: {
// interval:5,
color:['#fff'],
splitLine:{
show:true,
lineStyle:{
color:['#5456CB'],
// width:0.4,
type:'solid',
},
},
axisLine:{
lineStyle:{
color:'#5456CB',
}
},
axisLabel:{
textStyle:{
color:'#fff',
fontSize:12,
}
},
axisTick: {
show: false
},
type: 'value',
boundaryGap: [0, 0.2]
},
yAxis: {
name:'单位/mm',
nameTextStyle:{
color:'#fff',
},
axisLine:{
lineStyle:{
color:'#5456CB',
}
},
axisLabel:{
textStyle:{
color:'#fff',
fontSize:12,
}
},
axisTick: {
show: false
},
type: 'category',
data: ['11/21', '11/22', '11/23', '11/24', '11/25', '11/25']
},
series: [
{
color:['#029ACF'],
type: 'bar',
barWidth: '15',
data: [12000,10500,9800,8000,4500,],
itemStyle:{
normal:{
label:{
show:true,
textStyle:{
color:'#fff',
fontSize:12,
}
},
},
},
},
]
};
option && myChart.setOption(option);