/
gender and age.txt
54 lines (53 loc) · 1.15 KB
/
gender and age.txt
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
app.title = 'gender and age';
option = {
color:['#B2232B','#262996'],
tooltip : {
trigger: 'axis',
axisPointer : {
type : 'shadow'
}
},
legend: {
data: ['女','男']
},
grid: {
left: '5%',
right: '5%',
bottom: '5%',
containLabel: true
},
xAxis: {
type: 'value'
},
yAxis: {
type: 'category',
data: ['81-90歲','71-80歲','61-70歲','51-60歲','41-50歲','31-40歲','21-30歲','11-20歲'
]
},
series: [
{
name: '女',
type: 'bar',
stack: '总量',
label: {
normal: {
show: true,
position: 'insideRight'
}
},
data: [1, 0, 3, 4, 8, 32, 40, 0]
},
{
name: '男',
type: 'bar',
stack: '总量',
label: {
normal: {
show: true,
position: 'insideRight'
}
},
data: [0, 1, 2, 5, 10, 40, 45, 1]
},
]
};