forked from meteor1993/python-learning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender_2.html
More file actions
159 lines (158 loc) · 4.22 KB
/
Copy pathrender_2.html
File metadata and controls
159 lines (158 loc) · 4.22 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Awesome-pyecharts</title>
<script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
</head>
<body>
<div id="c520ad29b0c9491d8e841e2dc9a2fba8" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_c520ad29b0c9491d8e841e2dc9a2fba8 = echarts.init(
document.getElementById('c520ad29b0c9491d8e841e2dc9a2fba8'), 'light', {renderer: 'canvas'});
var option_c520ad29b0c9491d8e841e2dc9a2fba8 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
"animationEasing": "cubicOut",
"animationDelay": 0,
"animationDurationUpdate": 300,
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0,
"series": [
{
"type": "bar",
"name": "\u4ea7\u54c1A",
"data": [
58000,
60200,
63000,
71000,
84000,
90500,
107000
],
"barCategoryGap": "20%",
"label": {
"show": true,
"position": "top",
"margin": 8
}
},
{
"type": "bar",
"name": "\u4ea7\u54c1B",
"data": [
78000,
80200,
93000,
101000,
64000,
70500,
87000
],
"barCategoryGap": "20%",
"label": {
"show": true,
"position": "top",
"margin": 8
}
}
],
"legend": [
{
"data": [
"\u4ea7\u54c1A",
"\u4ea7\u54c1B"
],
"selected": {
"\u4ea7\u54c1A": true,
"\u4ea7\u54c1B": true
},
"show": true,
"padding": 5,
"itemGap": 10,
"itemWidth": 25,
"itemHeight": 14
}
],
"tooltip": {
"show": true,
"trigger": "item",
"triggerOn": "mousemove|click",
"axisPointer": {
"type": "line"
},
"textStyle": {
"fontSize": 14
},
"borderWidth": 0
},
"xAxis": [
{
"show": true,
"scale": false,
"nameLocation": "end",
"nameGap": 15,
"gridIndex": 0,
"inverse": false,
"offset": 0,
"splitNumber": 5,
"minInterval": 0,
"splitLine": {
"show": false,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid"
}
},
"data": [
2011,
2012,
2013,
2014,
2015,
2016,
2017
]
}
],
"yAxis": [
{
"show": true,
"scale": false,
"nameLocation": "end",
"nameGap": 15,
"gridIndex": 0,
"inverse": false,
"offset": 0,
"splitNumber": 5,
"minInterval": 0,
"splitLine": {
"show": false,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid"
}
}
}
],
"title": [
{
"text": "11 ~ 17\u5e74 xxx \u516c\u53f8 xx \u4ea7\u54c1\u9500\u91cf\u56fe",
"subtext": "\u8fd9\u91cc\u662f\u526f\u6807\u9898",
"padding": 5,
"itemGap": 10
}
]
};
chart_c520ad29b0c9491d8e841e2dc9a2fba8.setOption(option_c520ad29b0c9491d8e841e2dc9a2fba8);
</script>
</body>
</html>