-
Notifications
You must be signed in to change notification settings - Fork 0
/
Highchartsconfig.js
230 lines (220 loc) · 6.46 KB
/
Highchartsconfig.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
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
$(document).ready(function(){
$("#pie").hide();
$("#bar").hide();
$("#pie2").hide();
$("#Chart2").click(function() {
$(".active").removeClass("active");
$(this).addClass("active");
$("#StateWise").hide();
$("#pie").show();
$("#bar").hide();
$("#pie2").hide();
});
$("#Chart3").click(function() {
$(".active").removeClass("active");
$(this).addClass("active");
$("#StateWise").hide();
$("#pie").hide();
$("#bar").show();
$("#pie2").hide();
});
$("#Chart1").click(function() {
$(".active").removeClass("active");
$(this).addClass("active");
$("#StateWise").show();
$("#pie").hide();
$("#bar").hide();
$("#pie2").hide();
});
$("#Chart4").click(function(){
$(".active").removeClass("active");
$(this).addClass("active");
$("#StateWise").hide();
$("#pie").hide();
$("#bar").hide();
$("#pie2").show();
});
});
$(function () {
$('#pie').highcharts({
chart: {
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: 'Gender Wise Aadhar card distribution'
},
tooltip: {
pointFormat: 'Gender Wise Aadhar Card: <b>{point.percentage:.1f}%</b>'
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
format: '<b>{point.name}</b>: {point.percentage:.4f} %',
style: {
color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
}
}
}
},
series: [{
type: 'pie',
name: 'Gender Distribution of Aadhar Card',
data: [
['Male', 50.9904],
['Female', 49.0081],
['Transsexual', 0.0011],
]
}]
});
});
$(function () {
$('#bar').highcharts({
chart: {
plotBackgroundColor: null,
plotBorderWidth: 0,
plotShadow: false
},
title: {
text: 'Age Wise',
align: 'center',
verticalAlign: 'middle',
y: 50
},
tooltip: {
pointFormat: 'Age Group: <b>{point.percentage:.1f}%</b>'
},
plotOptions: {
pie: {
dataLabels: {
enabled: true,
distance: -50,
style: {
fontWeight: 'bold',
color: 'white',
textShadow: '0px 1px 2px black'
}
},
startAngle: -90,
endAngle: 90,
center: ['50%', '75%']
}
},
series: [{
type: 'pie',
name: 'Age Wise Aadhar Card Distribution',
innerSize: '50%',
data: [
['0 to 4 Years', 43967],
['5 to 17 Years', 197168],
['18 to 30 Years', 229784],
['31 to 45 Years', 167962],
['46 to 65 Years', 128420],
['66 years and Above', 30746],
{
name: 'Others',
y: 0.7,
dataLabels: {
enabled: false
}
}
]
}]
});
});
$(function () {
$('#pie2').highcharts({
chart: {
type: 'column',
width: 950
},
title: {
text: 'Aadhar Card Generating Agencies'
},
xAxis: {
type: 'category',
labels: {
rotation: -45,
style: {
color: '#000000',
fontSize: '10px',
fontFamily: 'Verdana, sans-serif'
}
}
},
yAxis: {
min: 0,
title: {
text: 'No Of Aadhar Cards generated'
}
},
legend: {
enabled: false
},
tooltip: {
pointFormat: 'No. Of Aadhar Cards generated: <b>{point.y:.1f} </b>'
},
series: [{
name: 'Population',
data: [
['DENA BANK', 185579],
['Indiapost', 0],
['Jharkhand', 1],
['Union Bank', 21949],
['Canara Bank', 34305],
['Bank Of India', 12301],
['IDBI Bank ltd', 853],
['Allahabad Bank', 28928],
['Bank of Baroda', 90],
['Govt of Kerala', 2054],
['Govt of Gujarat', 3715],
['UIDAI-Registrar', 42],
['FCS Govt of Punjab', 2690],
['Govt of Karnataka', 1274]
['Bank of Maharashtra',537],
['FCR Govt of Haryana',2439],
['Govt of Maharashtra',844],
['RDD Govt of Tripura',11],
['State Bank of India',1571],
['Punjab National Bank',10184],
['Punjab and Sind Bank',881],
['Central Bank of India',0],
['Govt of Andhra Pradesh',0],
['Govt of Himachal Pradesh',18],
['Oriental Bank of Commerce',1],
['Civil Supplies - A&N Islands',188],
['Registrar General India BEL2',25640],
['Registrar General India ECIL',21146],
['Dept of ITC Govt of Rajasthan',7951],
['Registrar General India - BEL',959],
['Govt of Sikkim - Dept of Econo',13],
['Registrar General of India ITI',13210],
['State Bank of Bikaner & Jaipur',0],
['Rural Development Dept Govt. of Bihar',13668],
['CSC e-Governance Services India Limited',192773],
['NSDL e-Governance Infrastructure Limited',200122],
['Project Coordinator UID Project Madhya Pradesh',8069],
['UTI Infrastructure Technology & Services Limited',348],
['Information Technology & Communication Department',1834],
['Atalji Janasnehi Directorate Government of Karnataka',1859],
['Department of Information Technology Govt of Jharkhand',0],
],
dataLabels: {
enabled: true,
rotation: -90,
color: '#FFFFFF',
align: 'right',
format: '{point.y:.0f}',
y: -20,
style: {
fontSize: '13px',
fontFamily: 'Verdana, sans-serif'
}
}
}]
});
});