-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgender_sta.html
146 lines (145 loc) · 3.67 KB
/
gender_sta.html
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
<!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="815c28e8f22246e7a2a171c1f6786ba7" class="chart-container" style="width:800px; height:500px;"></div>
<script>
var chart_815c28e8f22246e7a2a171c1f6786ba7 = echarts.init(
document.getElementById('815c28e8f22246e7a2a171c1f6786ba7'), 'white', {renderer: 'canvas'});
var option_815c28e8f22246e7a2a171c1f6786ba7 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
"animationEasing": "cubicOut",
"animationDelay": 0,
"animationDurationUpdate": 300,
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0,
"color": [
"#c23531",
"#2f4554",
"#61a0a8",
"#d48265",
"#749f83",
"#ca8622",
"#bda29a",
"#6e7074",
"#546570",
"#c4ccd3",
"#f05b72",
"#ef5b9c",
"#f47920",
"#905a3d",
"#fab27b",
"#2a5caa",
"#444693",
"#726930",
"#b2d235",
"#6d8346",
"#ac6767",
"#1d953f",
"#6950a1",
"#918597"
],
"series": [
{
"type": "pie",
"name": "\u6027\u522b\u5206\u5e03",
"clockwise": true,
"data": [
{
"name": "\u5973",
"value": 137
},
{
"name": "\u7537",
"value": 82
}
],
"radius": [
"50%",
"70%"
],
"center": [
"50%",
"50%"
],
"label": {
"show": false,
"position": "center",
"margin": 8
},
"tooltip": {
"show": true,
"trigger": "item",
"triggerOn": "mousemove|click",
"axisPointer": {
"type": "line"
},
"showContent": true,
"alwaysShowContent": false,
"showDelay": 0,
"hideDelay": 100,
"formatter": "{a} <br/>{b}: {c} ({d}%)",
"textStyle": {
"fontSize": 14
},
"borderWidth": 0,
"padding": 5
},
"rippleEffect": {
"show": true,
"brushType": "stroke",
"scale": 2.5,
"period": 4
}
}
],
"legend": [
{
"data": [
"\u5973",
"\u7537"
],
"selected": {},
"show": true,
"left": "legft",
"orient": "vertical",
"padding": 5,
"itemGap": 10,
"itemWidth": 25,
"itemHeight": 14
}
],
"tooltip": {
"show": true,
"trigger": "item",
"triggerOn": "mousemove|click",
"axisPointer": {
"type": "line"
},
"showContent": true,
"alwaysShowContent": false,
"showDelay": 0,
"hideDelay": 100,
"textStyle": {
"fontSize": 14
},
"borderWidth": 0,
"padding": 5
},
"title": [
{
"padding": 5,
"itemGap": 10
}
]
};
chart_815c28e8f22246e7a2a171c1f6786ba7.setOption(option_815c28e8f22246e7a2a171c1f6786ba7);
</script>
</body>
</html>