Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 espaco 1
var ChartsAmcharts = function() {
2
 
3
    var initChartSample1 = function() {
4
        var chart = AmCharts.makeChart("chart_1", {
5
            "type": "serial",
6
            "theme": "light",
7
            "pathToImages": Metronic.getGlobalPluginsPath() + "amcharts/amcharts/images/",
8
            "autoMargins": false,
9
            "marginLeft": 30,
10
            "marginRight": 8,
11
            "marginTop": 10,
12
            "marginBottom": 26,
13
 
14
            "fontFamily": 'Open Sans',            
15
            "color":    '#888',
16
 
17
            "dataProvider": [{
18
                "year": 2009,
19
                "income": 23.5,
20
                "expenses": 18.1
21
            }, {
22
                "year": 2010,
23
                "income": 26.2,
24
                "expenses": 22.8
25
            }, {
26
                "year": 2011,
27
                "income": 30.1,
28
                "expenses": 23.9
29
            }, {
30
                "year": 2012,
31
                "income": 29.5,
32
                "expenses": 25.1
33
            }, {
34
                "year": 2013,
35
                "income": 30.6,
36
                "expenses": 27.2,
37
                "dashLengthLine": 5
38
            }, {
39
                "year": 2014,
40
                "income": 34.1,
41
                "expenses": 29.9,
42
                "dashLengthColumn": 5,
43
                "alpha": 0.2,
44
                "additional": "(projection)"
45
            }],
46
            "valueAxes": [{
47
                "axisAlpha": 0,
48
                "position": "left"
49
            }],
50
            "startDuration": 1,
51
            "graphs": [{
52
                "alphaField": "alpha",
53
                "balloonText": "<span style='font-size:13px;'>[[title]] in [[category]]:<b>[[value]]</b> [[additional]]</span>",
54
                "dashLengthField": "dashLengthColumn",
55
                "fillAlphas": 1,
56
                "title": "Income",
57
                "type": "column",
58
                "valueField": "income"
59
            }, {
60
                "balloonText": "<span style='font-size:13px;'>[[title]] in [[category]]:<b>[[value]]</b> [[additional]]</span>",
61
                "bullet": "round",
62
                "dashLengthField": "dashLengthLine",
63
                "lineThickness": 3,
64
                "bulletSize": 7,
65
                "bulletBorderAlpha": 1,
66
                "bulletColor": "#FFFFFF",
67
                "useLineColorForBulletBorder": true,
68
                "bulletBorderThickness": 3,
69
                "fillAlphas": 0,
70
                "lineAlpha": 1,
71
                "title": "Expenses",
72
                "valueField": "expenses"
73
            }],
74
            "categoryField": "year",
75
            "categoryAxis": {
76
                "gridPosition": "start",
77
                "axisAlpha": 0,
78
                "tickLength": 0
79
            }
80
        });
81
 
82
        $('#chart_1').closest('.portlet').find('.fullscreen').click(function() {
83
            chart.invalidateSize();
84
        });
85
    }
86
 
87
    var initChartSample2 = function() {
88
        var chart = AmCharts.makeChart("chart_2", {
89
            "type": "serial",
90
            "theme": "light",
91
 
92
            "fontFamily": 'Open Sans',
93
            "color":    '#888888',
94
 
95
            "legend": {
96
                "equalWidths": false,
97
                "useGraphSettings": true,
98
                "valueAlign": "left",
99
                "valueWidth": 120
100
            },
101
            "dataProvider": [{
102
                "date": "2012-01-01",
103
                "distance": 227,
104
                "townName": "New York",
105
                "townName2": "New York",
106
                "townSize": 25,
107
                "latitude": 40.71,
108
                "duration": 408
109
            }, {
110
                "date": "2012-01-02",
111
                "distance": 371,
112
                "townName": "Washington",
113
                "townSize": 14,
114
                "latitude": 38.89,
115
                "duration": 482
116
            }, {
117
                "date": "2012-01-03",
118
                "distance": 433,
119
                "townName": "Wilmington",
120
                "townSize": 6,
121
                "latitude": 34.22,
122
                "duration": 562
123
            }, {
124
                "date": "2012-01-04",
125
                "distance": 345,
126
                "townName": "Jacksonville",
127
                "townSize": 7,
128
                "latitude": 30.35,
129
                "duration": 379
130
            }, {
131
                "date": "2012-01-05",
132
                "distance": 480,
133
                "townName": "Miami",
134
                "townName2": "Miami",
135
                "townSize": 10,
136
                "latitude": 25.83,
137
                "duration": 501
138
            }, {
139
                "date": "2012-01-06",
140
                "distance": 386,
141
                "townName": "Tallahassee",
142
                "townSize": 7,
143
                "latitude": 30.46,
144
                "duration": 443
145
            }, {
146
                "date": "2012-01-07",
147
                "distance": 348,
148
                "townName": "New Orleans",
149
                "townSize": 10,
150
                "latitude": 29.94,
151
                "duration": 405
152
            }, {
153
                "date": "2012-01-08",
154
                "distance": 238,
155
                "townName": "Houston",
156
                "townName2": "Houston",
157
                "townSize": 16,
158
                "latitude": 29.76,
159
                "duration": 309
160
            }, {
161
                "date": "2012-01-09",
162
                "distance": 218,
163
                "townName": "Dalas",
164
                "townSize": 17,
165
                "latitude": 32.8,
166
                "duration": 287
167
            }, {
168
                "date": "2012-01-10",
169
                "distance": 349,
170
                "townName": "Oklahoma City",
171
                "townSize": 11,
172
                "latitude": 35.49,
173
                "duration": 485
174
            }, {
175
                "date": "2012-01-11",
176
                "distance": 603,
177
                "townName": "Kansas City",
178
                "townSize": 10,
179
                "latitude": 39.1,
180
                "duration": 890
181
            }, {
182
                "date": "2012-01-12",
183
                "distance": 534,
184
                "townName": "Denver",
185
                "townName2": "Denver",
186
                "townSize": 18,
187
                "latitude": 39.74,
188
                "duration": 810
189
            }, {
190
                "date": "2012-01-13",
191
                "townName": "Salt Lake City",
192
                "townSize": 12,
193
                "distance": 425,
194
                "duration": 670,
195
                "latitude": 40.75,
196
                "dashLength": 8,
197
                "alpha": 0.4
198
            }, {
199
                "date": "2012-01-14",
200
                "latitude": 36.1,
201
                "duration": 470,
202
                "townName": "Las Vegas",
203
                "townName2": "Las Vegas"
204
            }, {
205
                "date": "2012-01-15"
206
            }, {
207
                "date": "2012-01-16"
208
            }, {
209
                "date": "2012-01-17"
210
            }, {
211
                "date": "2012-01-18"
212
            }, {
213
                "date": "2012-01-19"
214
            }],
215
            "valueAxes": [{
216
                "id": "distanceAxis",
217
                "axisAlpha": 0,
218
                "gridAlpha": 0,
219
                "position": "left",
220
                "title": "distance"
221
            }, {
222
                "id": "latitudeAxis",
223
                "axisAlpha": 0,
224
                "gridAlpha": 0,
225
                "labelsEnabled": false,
226
                "position": "right"
227
            }, {
228
                "id": "durationAxis",
229
                "duration": "mm",
230
                "durationUnits": {
231
                    "hh": "h ",
232
                    "mm": "min"
233
                },
234
                "axisAlpha": 0,
235
                "gridAlpha": 0,
236
                "inside": true,
237
                "position": "right",
238
                "title": "duration"
239
            }],
240
            "graphs": [{
241
                "alphaField": "alpha",
242
                "balloonText": "[[value]] miles",
243
                "dashLengthField": "dashLength",
244
                "fillAlphas": 0.7,
245
                "legendPeriodValueText": "total: [[value.sum]] mi",
246
                "legendValueText": "[[value]] mi",
247
                "title": "distance",
248
                "type": "column",
249
                "valueField": "distance",
250
                "valueAxis": "distanceAxis"
251
            }, {
252
                "balloonText": "latitude:[[value]]",
253
                "bullet": "round",
254
                "bulletBorderAlpha": 1,
255
                "useLineColorForBulletBorder": true,
256
                "bulletColor": "#FFFFFF",
257
                "bulletSizeField": "townSize",
258
                "dashLengthField": "dashLength",
259
                "descriptionField": "townName",
260
                "labelPosition": "right",
261
                "labelText": "[[townName2]]",
262
                "legendValueText": "[[description]]/[[value]]",
263
                "title": "latitude/city",
264
                "fillAlphas": 0,
265
                "valueField": "latitude",
266
                "valueAxis": "latitudeAxis"
267
            }, {
268
                "bullet": "square",
269
                "bulletBorderAlpha": 1,
270
                "bulletBorderThickness": 1,
271
                "dashLengthField": "dashLength",
272
                "legendValueText": "[[value]]",
273
                "title": "duration",
274
                "fillAlphas": 0,
275
                "valueField": "duration",
276
                "valueAxis": "durationAxis"
277
            }],
278
            "chartCursor": {
279
                "categoryBalloonDateFormat": "DD",
280
                "cursorAlpha": 0.1,
281
                "cursorColor": "#000000",
282
                "fullWidth": true,
283
                "valueBalloonsEnabled": false,
284
                "zoomable": false
285
            },
286
            "dataDateFormat": "YYYY-MM-DD",
287
            "categoryField": "date",
288
            "categoryAxis": {
289
                "dateFormats": [{
290
                    "period": "DD",
291
                    "format": "DD"
292
                }, {
293
                    "period": "WW",
294
                    "format": "MMM DD"
295
                }, {
296
                    "period": "MM",
297
                    "format": "MMM"
298
                }, {
299
                    "period": "YYYY",
300
                    "format": "YYYY"
301
                }],
302
                "parseDates": true,
303
                "autoGridCount": false,
304
                "axisColor": "#555555",
305
                "gridAlpha": 0.1,
306
                "gridColor": "#FFFFFF",
307
                "gridCount": 50
308
            },
309
            "exportConfig": {
310
                "menuBottom": "20px",
311
                "menuRight": "22px",
312
                "menuItems": [{
313
                    "icon": Metronic.getGlobalPluginsPath() + "amcharts/amcharts/images/export.png",
314
                    "format": 'png'
315
                }]
316
            }
317
        });
318
 
319
        $('#chart_2').closest('.portlet').find('.fullscreen').click(function() {
320
            chart.invalidateSize();
321
        });
322
    }
323
 
324
    var initChartSample3 = function() {
325
        var chart = AmCharts.makeChart("chart_3", {
326
            "type": "serial",
327
            "theme": "light",
328
 
329
            "fontFamily": 'Open Sans',            
330
            "color":    '#888888',
331
 
332
            "pathToImages": Metronic.getGlobalPluginsPath() + "amcharts/amcharts/images/",
333
 
334
            "dataProvider": [{
335
                "lineColor": "#b7e021",  
336
                "date": "2012-01-01",
337
                "duration": 408
338
            }, {
339
                "date": "2012-01-02",
340
                "duration": 482
341
            }, {
342
                "date": "2012-01-03",
343
                "duration": 562
344
            }, {
345
                "date": "2012-01-04",
346
                "duration": 379
347
            }, {
348
                "lineColor": "#fbd51a",
349
                "date": "2012-01-05",
350
                "duration": 501
351
            }, {
352
                "date": "2012-01-06",
353
                "duration": 443
354
            }, {
355
                "date": "2012-01-07",
356
                "duration": 405
357
            }, {
358
                "date": "2012-01-08",
359
                "duration": 309,
360
                "lineColor": "#2498d2"
361
            }, {
362
                "date": "2012-01-09",
363
                "duration": 287
364
            }, {
365
                "date": "2012-01-10",
366
                "duration": 485
367
            }, {
368
                "date": "2012-01-11",
369
                "duration": 890
370
            }, {
371
                "date": "2012-01-12",
372
                "duration": 810
373
            }],
374
            "balloon": {
375
                "cornerRadius": 6
376
            },
377
            "valueAxes": [{
378
                "duration": "mm",
379
                "durationUnits": {
380
                    "hh": "h ",
381
                    "mm": "min"
382
                },
383
                "axisAlpha": 0
384
            }],
385
            "graphs": [{
386
                "bullet": "square",
387
                "bulletBorderAlpha": 1,
388
                "bulletBorderThickness": 1,
389
                "fillAlphas": 0.3,
390
                "fillColorsField": "lineColor",
391
                "legendValueText": "[[value]]",
392
                "lineColorField": "lineColor",
393
                "title": "duration",
394
                "valueField": "duration"
395
            }],
396
            "chartScrollbar": {},
397
            "chartCursor": {
398
                "categoryBalloonDateFormat": "YYYY MMM DD",
399
                "cursorAlpha": 0,
400
                "zoomable": false
401
            },
402
            "dataDateFormat": "YYYY-MM-DD",
403
            "categoryField": "date",
404
            "categoryAxis": {
405
                "dateFormats": [{
406
                    "period": "DD",
407
                    "format": "DD"
408
                }, {
409
                    "period": "WW",
410
                    "format": "MMM DD"
411
                }, {
412
                    "period": "MM",
413
                    "format": "MMM"
414
                }, {
415
                    "period": "YYYY",
416
                    "format": "YYYY"
417
                }],
418
                "parseDates": true,
419
                "autoGridCount": false,
420
                "axisColor": "#555555",
421
                "gridAlpha": 0,
422
                "gridCount": 50
423
            }
424
        });
425
 
426
        $('#chart_3').closest('.portlet').find('.fullscreen').click(function() {
427
            chart.invalidateSize();
428
        });
429
    }
430
 
431
    var initChartSample4 = function() {
432
        var chart = AmCharts.makeChart("chart_4", {
433
            "type": "serial",
434
            "theme": "light",
435
 
436
 
437
            "handDrawn": true,
438
            "handDrawScatter": 3,
439
            "legend": {
440
                "useGraphSettings": true,
441
                "markerSize": 12,
442
                "valueWidth": 0,
443
                "verticalGap": 0
444
            },
445
            "dataProvider": [{
446
                "year": 2005,
447
                "income": 23.5,
448
                "expenses": 18.1
449
            }, {
450
                "year": 2006,
451
                "income": 26.2,
452
                "expenses": 22.8
453
            }, {
454
                "year": 2007,
455
                "income": 30.1,
456
                "expenses": 23.9
457
            }, {
458
                "year": 2008,
459
                "income": 29.5,
460
                "expenses": 25.1
461
            }, {
462
                "year": 2009,
463
                "income": 24.6,
464
                "expenses": 25
465
            }],
466
            "valueAxes": [{
467
                "minorGridAlpha": 0.08,
468
                "minorGridEnabled": true,
469
                "position": "top",
470
                "axisAlpha": 0
471
            }],
472
            "startDuration": 1,
473
            "graphs": [{
474
                "balloonText": "<span style='font-size:13px;'>[[title]] in [[category]]:<b>[[value]]</b></span>",
475
                "title": "Income",
476
                "type": "column",
477
                "fillAlphas": 0.8,
478
 
479
                "valueField": "income"
480
            }, {
481
                "balloonText": "<span style='font-size:13px;'>[[title]] in [[category]]:<b>[[value]]</b></span>",
482
                "bullet": "round",
483
                "bulletBorderAlpha": 1,
484
                "bulletColor": "#FFFFFF",
485
                "useLineColorForBulletBorder": true,
486
                "fillAlphas": 0,
487
                "lineThickness": 2,
488
                "lineAlpha": 1,
489
                "bulletSize": 7,
490
                "title": "Expenses",
491
                "valueField": "expenses"
492
            }],
493
            "rotate": true,
494
            "categoryField": "year",
495
            "categoryAxis": {
496
                "gridPosition": "start"
497
            }
498
        });
499
 
500
        $('#chart_4').closest('.portlet').find('.fullscreen').click(function() {
501
            chart.invalidateSize();
502
        });
503
    }
504
 
505
    var initChartSample5 = function() {
506
        var chart = AmCharts.makeChart("chart_5", {
507
            "theme": "light",
508
            "type": "serial",
509
            "startDuration": 2,
510
 
511
            "fontFamily": 'Open Sans',
512
 
513
            "color":    '#888',
514
 
515
            "dataProvider": [{
516
                "country": "USA",
517
                "visits": 4025,
518
                "color": "#FF0F00"
519
            }, {
520
                "country": "China",
521
                "visits": 1882,
522
                "color": "#FF6600"
523
            }, {
524
                "country": "Japan",
525
                "visits": 1809,
526
                "color": "#FF9E01"
527
            }, {
528
                "country": "Germany",
529
                "visits": 1322,
530
                "color": "#FCD202"
531
            }, {
532
                "country": "UK",
533
                "visits": 1122,
534
                "color": "#F8FF01"
535
            }, {
536
                "country": "France",
537
                "visits": 1114,
538
                "color": "#B0DE09"
539
            }, {
540
                "country": "India",
541
                "visits": 984,
542
                "color": "#04D215"
543
            }, {
544
                "country": "Spain",
545
                "visits": 711,
546
                "color": "#0D8ECF"
547
            }, {
548
                "country": "Netherlands",
549
                "visits": 665,
550
                "color": "#0D52D1"
551
            }, {
552
                "country": "Russia",
553
                "visits": 580,
554
                "color": "#2A0CD0"
555
            }, {
556
                "country": "South Korea",
557
                "visits": 443,
558
                "color": "#8A0CCF"
559
            }, {
560
                "country": "Canada",
561
                "visits": 441,
562
                "color": "#CD0D74"
563
            }, {
564
                "country": "Brazil",
565
                "visits": 395,
566
                "color": "#754DEB"
567
            }, {
568
                "country": "Italy",
569
                "visits": 386,
570
                "color": "#DDDDDD"
571
            }, {
572
                "country": "Australia",
573
                "visits": 384,
574
                "color": "#999999"
575
            }, {
576
                "country": "Taiwan",
577
                "visits": 338,
578
                "color": "#333333"
579
            }, {
580
                "country": "Poland",
581
                "visits": 328,
582
                "color": "#000000"
583
            }],
584
            "valueAxes": [{
585
                "position": "left",
586
                "axisAlpha": 0,
587
                "gridAlpha": 0
588
            }],
589
            "graphs": [{
590
                "balloonText": "[[category]]: <b>[[value]]</b>",
591
                "colorField": "color",
592
                "fillAlphas": 0.85,
593
                "lineAlpha": 0.1,
594
                "type": "column",
595
                "topRadius": 1,
596
                "valueField": "visits"
597
            }],
598
            "depth3D": 40,
599
            "angle": 30,
600
            "chartCursor": {
601
                "categoryBalloonEnabled": false,
602
                "cursorAlpha": 0,
603
                "zoomable": false
604
            },
605
            "categoryField": "country",
606
            "categoryAxis": {
607
                "gridPosition": "start",
608
                "axisAlpha": 0,
609
                "gridAlpha": 0
610
 
611
            },
612
            "exportConfig": {
613
                "menuTop": "20px",
614
                "menuRight": "20px",
615
                "menuItems": [{
616
                    "icon": '/lib/3/images/export.png',
617
                    "format": 'png'
618
                }]
619
            }
620
        }, 0);
621
 
622
        jQuery('.chart_5_chart_input').off().on('input change', function() {
623
            var property = jQuery(this).data('property');
624
            var target = chart;
625
            chart.startDuration = 0;
626
 
627
            if (property == 'topRadius') {
628
                target = chart.graphs[0];
629
            }
630
 
631
            target[property] = this.value;
632
            chart.validateNow();
633
        });
634
 
635
        $('#chart_5').closest('.portlet').find('.fullscreen').click(function() {
636
            chart.invalidateSize();
637
        });
638
    }
639
 
640
    var initChartSample6 = function() {
641
        var chart = AmCharts.makeChart("chart_6", {
642
            "type": "pie",
643
            "theme": "light",
644
 
645
            "fontFamily": 'Open Sans',
646
 
647
            "color":    '#888',
648
 
649
            "dataProvider": [{
650
                "country": "Lithuania",
651
                "litres": 501.9
652
            }, {
653
                "country": "Czech Republic",
654
                "litres": 301.9
655
            }, {
656
                "country": "Ireland",
657
                "litres": 201.1
658
            }, {
659
                "country": "Germany",
660
                "litres": 165.8
661
            }, {
662
                "country": "Australia",
663
                "litres": 139.9
664
            }, {
665
                "country": "Austria",
666
                "litres": 128.3
667
            }, {
668
                "country": "UK",
669
                "litres": 99
670
            }, {
671
                "country": "Belgium",
672
                "litres": 60
673
            }, {
674
                "country": "The Netherlands",
675
                "litres": 50
676
            }],
677
            "valueField": "litres",
678
            "titleField": "country",
679
            "exportConfig": {
680
                menuItems: [{
681
                    icon: Metronic.getGlobalPluginsPath() + "amcharts/amcharts/images/export.png",
682
                    format: 'png'
683
                }]
684
            }
685
        });
686
 
687
        $('#chart_6').closest('.portlet').find('.fullscreen').click(function() {
688
            chart.invalidateSize();
689
        });
690
    }
691
 
692
    var initChartSample7 = function() {
693
        var chart = AmCharts.makeChart("chart_7", {
694
            "type": "pie",
695
            "theme": "light",
696
 
697
            "fontFamily": 'Open Sans',
698
 
699
            "color":    '#888',
700
 
701
            "dataProvider": [{
702
                "country": "Lithuania",
703
                "value": 260
704
            }, {
705
                "country": "Ireland",
706
                "value": 201
707
            }, {
708
                "country": "Germany",
709
                "value": 65
710
            }, {
711
                "country": "Australia",
712
                "value": 39
713
            }, {
714
                "country": "UK",
715
                "value": 19
716
            }, {
717
                "country": "Latvia",
718
                "value": 10
719
            }],
720
            "valueField": "value",
721
            "titleField": "country",
722
            "outlineAlpha": 0.4,
723
            "depth3D": 15,
724
            "balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>",
725
            "angle": 30,
726
            "exportConfig": {
727
                menuItems: [{
728
                    icon: '/lib/3/images/export.png',
729
                    format: 'png'
730
                }]
731
            }
732
        });
733
 
734
        jQuery('.chart_7_chart_input').off().on('input change', function() {
735
            var property = jQuery(this).data('property');
736
            var target = chart;
737
            var value = Number(this.value);
738
            chart.startDuration = 0;
739
 
740
            if (property == 'innerRadius') {
741
                value += "%";
742
            }
743
 
744
            target[property] = value;
745
            chart.validateNow();
746
        });
747
 
748
        $('#chart_7').closest('.portlet').find('.fullscreen').click(function() {
749
            chart.invalidateSize();
750
        });
751
    }
752
 
753
    var initChartSample8 = function() {
754
        var chart = AmCharts.makeChart("chart_8", {
755
            "type": "radar",
756
            "theme": "light",
757
 
758
            "fontFamily": 'Open Sans',
759
 
760
            "color":    '#888',
761
 
762
            "dataProvider": [{
763
                "direction": "N",
764
                "value": 8
765
            }, {
766
                "direction": "NE",
767
                "value": 9
768
            }, {
769
                "direction": "E",
770
                "value": 4.5
771
            }, {
772
                "direction": "SE",
773
                "value": 3.5
774
            }, {
775
                "direction": "S",
776
                "value": 9.2
777
            }, {
778
                "direction": "SW",
779
                "value": 8.4
780
            }, {
781
                "direction": "W",
782
                "value": 11.1
783
            }, {
784
                "direction": "NW",
785
                "value": 10
786
            }],
787
            "valueAxes": [{
788
                "gridType": "circles",
789
                "minimum": 0,
790
                "autoGridCount": false,
791
                "axisAlpha": 0.2,
792
                "fillAlpha": 0.05,
793
                "fillColor": "#FFFFFF",
794
                "gridAlpha": 0.08,
795
                "guides": [{
796
                    "angle": 225,
797
                    "fillAlpha": 0.3,
798
                    "fillColor": "#0066CC",
799
                    "tickLength": 0,
800
                    "toAngle": 315,
801
                    "toValue": 14,
802
                    "value": 0,
803
                    "lineAlpha": 0,
804
 
805
                }, {
806
                    "angle": 45,
807
                    "fillAlpha": 0.3,
808
                    "fillColor": "#CC3333",
809
                    "tickLength": 0,
810
                    "toAngle": 135,
811
                    "toValue": 14,
812
                    "value": 0,
813
                    "lineAlpha": 0,
814
                }],
815
                "position": "left"
816
            }],
817
            "startDuration": 1,
818
            "graphs": [{
819
                "balloonText": "[[category]]: [[value]] m/s",
820
                "bullet": "round",
821
                "fillAlphas": 0.3,
822
                "valueField": "value"
823
            }],
824
            "categoryField": "direction"
825
        });
826
 
827
        $('#chart_8').closest('.portlet').find('.fullscreen').click(function() {
828
            chart.invalidateSize();
829
        });
830
    }
831
 
832
    var initChartSample9 = function() {
833
        var chart = AmCharts.makeChart("chart_9", {
834
            "type": "radar",
835
            "theme": "light",
836
 
837
            "fontFamily": 'Open Sans',
838
 
839
            "color":    '#888',
840
 
841
            "dataProvider": [{
842
                "country": "Czech Republic",
843
                "litres": 156.9
844
            }, {
845
                "country": "Ireland",
846
                "litres": 131.1
847
            }, {
848
                "country": "Germany",
849
                "litres": 115.8
850
            }, {
851
                "country": "Australia",
852
                "litres": 109.9
853
            }, {
854
                "country": "Austria",
855
                "litres": 108.3
856
            }, {
857
                "country": "UK",
858
                "litres": 99
859
            }],
860
            "valueAxes": [{
861
                "axisTitleOffset": 20,
862
                "minimum": 0,
863
                "axisAlpha": 0.15
864
            }],
865
            "startDuration": 2,
866
            "graphs": [{
867
                "balloonText": "[[value]] litres of beer per year",
868
                "bullet": "round",
869
                "valueField": "litres"
870
            }],
871
            "categoryField": "country",
872
            "exportConfig": {
873
                "menuTop": "10px",
874
                "menuRight": "10px",
875
                "menuItems": [{
876
                    "icon": '/lib/3/images/export.png',
877
                    "format": 'png'
878
                }]
879
            }
880
        });
881
 
882
        $('#chart_9').closest('.portlet').find('.fullscreen').click(function() {
883
            chart.invalidateSize();
884
        });
885
    }
886
 
887
    var initChartSample10 = function() {
888
        /*
889
            although ammap has methos like getAreaCenterLatitude and getAreaCenterLongitude,
890
            they are not suitable in quite a lot of cases as the center of some countries
891
            is even outside the country itself (like US, because of Alaska and Hawaii)
892
            That's why wehave the coordinates stored here
893
        */
894
 
895
        var latlong = {};
896
        latlong["AD"] = {
897
            "latitude": 42.5,
898
            "longitude": 1.5
899
        };
900
        latlong["AE"] = {
901
            "latitude": 24,
902
            "longitude": 54
903
        };
904
        latlong["AF"] = {
905
            "latitude": 33,
906
            "longitude": 65
907
        };
908
        latlong["AG"] = {
909
            "latitude": 17.05,
910
            "longitude": -61.8
911
        };
912
        latlong["AI"] = {
913
            "latitude": 18.25,
914
            "longitude": -63.1667
915
        };
916
        latlong["AL"] = {
917
            "latitude": 41,
918
            "longitude": 20
919
        };
920
        latlong["AM"] = {
921
            "latitude": 40,
922
            "longitude": 45
923
        };
924
        latlong["AN"] = {
925
            "latitude": 12.25,
926
            "longitude": -68.75
927
        };
928
        latlong["AO"] = {
929
            "latitude": -12.5,
930
            "longitude": 18.5
931
        };
932
        latlong["AP"] = {
933
            "latitude": 35,
934
            "longitude": 105
935
        };
936
        latlong["AQ"] = {
937
            "latitude": -90,
938
            "longitude": 0
939
        };
940
        latlong["AR"] = {
941
            "latitude": -34,
942
            "longitude": -64
943
        };
944
        latlong["AS"] = {
945
            "latitude": -14.3333,
946
            "longitude": -170
947
        };
948
        latlong["AT"] = {
949
            "latitude": 47.3333,
950
            "longitude": 13.3333
951
        };
952
        latlong["AU"] = {
953
            "latitude": -27,
954
            "longitude": 133
955
        };
956
        latlong["AW"] = {
957
            "latitude": 12.5,
958
            "longitude": -69.9667
959
        };
960
        latlong["AZ"] = {
961
            "latitude": 40.5,
962
            "longitude": 47.5
963
        };
964
        latlong["BA"] = {
965
            "latitude": 44,
966
            "longitude": 18
967
        };
968
        latlong["BB"] = {
969
            "latitude": 13.1667,
970
            "longitude": -59.5333
971
        };
972
        latlong["BD"] = {
973
            "latitude": 24,
974
            "longitude": 90
975
        };
976
        latlong["BE"] = {
977
            "latitude": 50.8333,
978
            "longitude": 4
979
        };
980
        latlong["BF"] = {
981
            "latitude": 13,
982
            "longitude": -2
983
        };
984
        latlong["BG"] = {
985
            "latitude": 43,
986
            "longitude": 25
987
        };
988
        latlong["BH"] = {
989
            "latitude": 26,
990
            "longitude": 50.55
991
        };
992
        latlong["BI"] = {
993
            "latitude": -3.5,
994
            "longitude": 30
995
        };
996
        latlong["BJ"] = {
997
            "latitude": 9.5,
998
            "longitude": 2.25
999
        };
1000
        latlong["BM"] = {
1001
            "latitude": 32.3333,
1002
            "longitude": -64.75
1003
        };
1004
        latlong["BN"] = {
1005
            "latitude": 4.5,
1006
            "longitude": 114.6667
1007
        };
1008
        latlong["BO"] = {
1009
            "latitude": -17,
1010
            "longitude": -65
1011
        };
1012
        latlong["BR"] = {
1013
            "latitude": -10,
1014
            "longitude": -55
1015
        };
1016
        latlong["BS"] = {
1017
            "latitude": 24.25,
1018
            "longitude": -76
1019
        };
1020
        latlong["BT"] = {
1021
            "latitude": 27.5,
1022
            "longitude": 90.5
1023
        };
1024
        latlong["BV"] = {
1025
            "latitude": -54.4333,
1026
            "longitude": 3.4
1027
        };
1028
        latlong["BW"] = {
1029
            "latitude": -22,
1030
            "longitude": 24
1031
        };
1032
        latlong["BY"] = {
1033
            "latitude": 53,
1034
            "longitude": 28
1035
        };
1036
        latlong["BZ"] = {
1037
            "latitude": 17.25,
1038
            "longitude": -88.75
1039
        };
1040
        latlong["CA"] = {
1041
            "latitude": 54,
1042
            "longitude": -100
1043
        };
1044
        latlong["CC"] = {
1045
            "latitude": -12.5,
1046
            "longitude": 96.8333
1047
        };
1048
        latlong["CD"] = {
1049
            "latitude": 0,
1050
            "longitude": 25
1051
        };
1052
        latlong["CF"] = {
1053
            "latitude": 7,
1054
            "longitude": 21
1055
        };
1056
        latlong["CG"] = {
1057
            "latitude": -1,
1058
            "longitude": 15
1059
        };
1060
        latlong["CH"] = {
1061
            "latitude": 47,
1062
            "longitude": 8
1063
        };
1064
        latlong["CI"] = {
1065
            "latitude": 8,
1066
            "longitude": -5
1067
        };
1068
        latlong["CK"] = {
1069
            "latitude": -21.2333,
1070
            "longitude": -159.7667
1071
        };
1072
        latlong["CL"] = {
1073
            "latitude": -30,
1074
            "longitude": -71
1075
        };
1076
        latlong["CM"] = {
1077
            "latitude": 6,
1078
            "longitude": 12
1079
        };
1080
        latlong["CN"] = {
1081
            "latitude": 35,
1082
            "longitude": 105
1083
        };
1084
        latlong["CO"] = {
1085
            "latitude": 4,
1086
            "longitude": -72
1087
        };
1088
        latlong["CR"] = {
1089
            "latitude": 10,
1090
            "longitude": -84
1091
        };
1092
        latlong["CU"] = {
1093
            "latitude": 21.5,
1094
            "longitude": -80
1095
        };
1096
        latlong["CV"] = {
1097
            "latitude": 16,
1098
            "longitude": -24
1099
        };
1100
        latlong["CX"] = {
1101
            "latitude": -10.5,
1102
            "longitude": 105.6667
1103
        };
1104
        latlong["CY"] = {
1105
            "latitude": 35,
1106
            "longitude": 33
1107
        };
1108
        latlong["CZ"] = {
1109
            "latitude": 49.75,
1110
            "longitude": 15.5
1111
        };
1112
        latlong["DE"] = {
1113
            "latitude": 51,
1114
            "longitude": 9
1115
        };
1116
        latlong["DJ"] = {
1117
            "latitude": 11.5,
1118
            "longitude": 43
1119
        };
1120
        latlong["DK"] = {
1121
            "latitude": 56,
1122
            "longitude": 10
1123
        };
1124
        latlong["DM"] = {
1125
            "latitude": 15.4167,
1126
            "longitude": -61.3333
1127
        };
1128
        latlong["DO"] = {
1129
            "latitude": 19,
1130
            "longitude": -70.6667
1131
        };
1132
        latlong["DZ"] = {
1133
            "latitude": 28,
1134
            "longitude": 3
1135
        };
1136
        latlong["EC"] = {
1137
            "latitude": -2,
1138
            "longitude": -77.5
1139
        };
1140
        latlong["EE"] = {
1141
            "latitude": 59,
1142
            "longitude": 26
1143
        };
1144
        latlong["EG"] = {
1145
            "latitude": 27,
1146
            "longitude": 30
1147
        };
1148
        latlong["EH"] = {
1149
            "latitude": 24.5,
1150
            "longitude": -13
1151
        };
1152
        latlong["ER"] = {
1153
            "latitude": 15,
1154
            "longitude": 39
1155
        };
1156
        latlong["ES"] = {
1157
            "latitude": 40,
1158
            "longitude": -4
1159
        };
1160
        latlong["ET"] = {
1161
            "latitude": 8,
1162
            "longitude": 38
1163
        };
1164
        latlong["EU"] = {
1165
            "latitude": 47,
1166
            "longitude": 8
1167
        };
1168
        latlong["FI"] = {
1169
            "latitude": 62,
1170
            "longitude": 26
1171
        };
1172
        latlong["FJ"] = {
1173
            "latitude": -18,
1174
            "longitude": 175
1175
        };
1176
        latlong["FK"] = {
1177
            "latitude": -51.75,
1178
            "longitude": -59
1179
        };
1180
        latlong["FM"] = {
1181
            "latitude": 6.9167,
1182
            "longitude": 158.25
1183
        };
1184
        latlong["FO"] = {
1185
            "latitude": 62,
1186
            "longitude": -7
1187
        };
1188
        latlong["FR"] = {
1189
            "latitude": 46,
1190
            "longitude": 2
1191
        };
1192
        latlong["GA"] = {
1193
            "latitude": -1,
1194
            "longitude": 11.75
1195
        };
1196
        latlong["GB"] = {
1197
            "latitude": 54,
1198
            "longitude": -2
1199
        };
1200
        latlong["GD"] = {
1201
            "latitude": 12.1167,
1202
            "longitude": -61.6667
1203
        };
1204
        latlong["GE"] = {
1205
            "latitude": 42,
1206
            "longitude": 43.5
1207
        };
1208
        latlong["GF"] = {
1209
            "latitude": 4,
1210
            "longitude": -53
1211
        };
1212
        latlong["GH"] = {
1213
            "latitude": 8,
1214
            "longitude": -2
1215
        };
1216
        latlong["GI"] = {
1217
            "latitude": 36.1833,
1218
            "longitude": -5.3667
1219
        };
1220
        latlong["GL"] = {
1221
            "latitude": 72,
1222
            "longitude": -40
1223
        };
1224
        latlong["GM"] = {
1225
            "latitude": 13.4667,
1226
            "longitude": -16.5667
1227
        };
1228
        latlong["GN"] = {
1229
            "latitude": 11,
1230
            "longitude": -10
1231
        };
1232
        latlong["GP"] = {
1233
            "latitude": 16.25,
1234
            "longitude": -61.5833
1235
        };
1236
        latlong["GQ"] = {
1237
            "latitude": 2,
1238
            "longitude": 10
1239
        };
1240
        latlong["GR"] = {
1241
            "latitude": 39,
1242
            "longitude": 22
1243
        };
1244
        latlong["GS"] = {
1245
            "latitude": -54.5,
1246
            "longitude": -37
1247
        };
1248
        latlong["GT"] = {
1249
            "latitude": 15.5,
1250
            "longitude": -90.25
1251
        };
1252
        latlong["GU"] = {
1253
            "latitude": 13.4667,
1254
            "longitude": 144.7833
1255
        };
1256
        latlong["GW"] = {
1257
            "latitude": 12,
1258
            "longitude": -15
1259
        };
1260
        latlong["GY"] = {
1261
            "latitude": 5,
1262
            "longitude": -59
1263
        };
1264
        latlong["HK"] = {
1265
            "latitude": 22.25,
1266
            "longitude": 114.1667
1267
        };
1268
        latlong["HM"] = {
1269
            "latitude": -53.1,
1270
            "longitude": 72.5167
1271
        };
1272
        latlong["HN"] = {
1273
            "latitude": 15,
1274
            "longitude": -86.5
1275
        };
1276
        latlong["HR"] = {
1277
            "latitude": 45.1667,
1278
            "longitude": 15.5
1279
        };
1280
        latlong["HT"] = {
1281
            "latitude": 19,
1282
            "longitude": -72.4167
1283
        };
1284
        latlong["HU"] = {
1285
            "latitude": 47,
1286
            "longitude": 20
1287
        };
1288
        latlong["ID"] = {
1289
            "latitude": -5,
1290
            "longitude": 120
1291
        };
1292
        latlong["IE"] = {
1293
            "latitude": 53,
1294
            "longitude": -8
1295
        };
1296
        latlong["IL"] = {
1297
            "latitude": 31.5,
1298
            "longitude": 34.75
1299
        };
1300
        latlong["IN"] = {
1301
            "latitude": 20,
1302
            "longitude": 77
1303
        };
1304
        latlong["IO"] = {
1305
            "latitude": -6,
1306
            "longitude": 71.5
1307
        };
1308
        latlong["IQ"] = {
1309
            "latitude": 33,
1310
            "longitude": 44
1311
        };
1312
        latlong["IR"] = {
1313
            "latitude": 32,
1314
            "longitude": 53
1315
        };
1316
        latlong["IS"] = {
1317
            "latitude": 65,
1318
            "longitude": -18
1319
        };
1320
        latlong["IT"] = {
1321
            "latitude": 42.8333,
1322
            "longitude": 12.8333
1323
        };
1324
        latlong["JM"] = {
1325
            "latitude": 18.25,
1326
            "longitude": -77.5
1327
        };
1328
        latlong["JO"] = {
1329
            "latitude": 31,
1330
            "longitude": 36
1331
        };
1332
        latlong["JP"] = {
1333
            "latitude": 36,
1334
            "longitude": 138
1335
        };
1336
        latlong["KE"] = {
1337
            "latitude": 1,
1338
            "longitude": 38
1339
        };
1340
        latlong["KG"] = {
1341
            "latitude": 41,
1342
            "longitude": 75
1343
        };
1344
        latlong["KH"] = {
1345
            "latitude": 13,
1346
            "longitude": 105
1347
        };
1348
        latlong["KI"] = {
1349
            "latitude": 1.4167,
1350
            "longitude": 173
1351
        };
1352
        latlong["KM"] = {
1353
            "latitude": -12.1667,
1354
            "longitude": 44.25
1355
        };
1356
        latlong["KN"] = {
1357
            "latitude": 17.3333,
1358
            "longitude": -62.75
1359
        };
1360
        latlong["KP"] = {
1361
            "latitude": 40,
1362
            "longitude": 127
1363
        };
1364
        latlong["KR"] = {
1365
            "latitude": 37,
1366
            "longitude": 127.5
1367
        };
1368
        latlong["KW"] = {
1369
            "latitude": 29.3375,
1370
            "longitude": 47.6581
1371
        };
1372
        latlong["KY"] = {
1373
            "latitude": 19.5,
1374
            "longitude": -80.5
1375
        };
1376
        latlong["KZ"] = {
1377
            "latitude": 48,
1378
            "longitude": 68
1379
        };
1380
        latlong["LA"] = {
1381
            "latitude": 18,
1382
            "longitude": 105
1383
        };
1384
        latlong["LB"] = {
1385
            "latitude": 33.8333,
1386
            "longitude": 35.8333
1387
        };
1388
        latlong["LC"] = {
1389
            "latitude": 13.8833,
1390
            "longitude": -61.1333
1391
        };
1392
        latlong["LI"] = {
1393
            "latitude": 47.1667,
1394
            "longitude": 9.5333
1395
        };
1396
        latlong["LK"] = {
1397
            "latitude": 7,
1398
            "longitude": 81
1399
        };
1400
        latlong["LR"] = {
1401
            "latitude": 6.5,
1402
            "longitude": -9.5
1403
        };
1404
        latlong["LS"] = {
1405
            "latitude": -29.5,
1406
            "longitude": 28.5
1407
        };
1408
        latlong["LT"] = {
1409
            "latitude": 55,
1410
            "longitude": 24
1411
        };
1412
        latlong["LU"] = {
1413
            "latitude": 49.75,
1414
            "longitude": 6
1415
        };
1416
        latlong["LV"] = {
1417
            "latitude": 57,
1418
            "longitude": 25
1419
        };
1420
        latlong["LY"] = {
1421
            "latitude": 25,
1422
            "longitude": 17
1423
        };
1424
        latlong["MA"] = {
1425
            "latitude": 32,
1426
            "longitude": -5
1427
        };
1428
        latlong["MC"] = {
1429
            "latitude": 43.7333,
1430
            "longitude": 7.4
1431
        };
1432
        latlong["MD"] = {
1433
            "latitude": 47,
1434
            "longitude": 29
1435
        };
1436
        latlong["ME"] = {
1437
            "latitude": 42.5,
1438
            "longitude": 19.4
1439
        };
1440
        latlong["MG"] = {
1441
            "latitude": -20,
1442
            "longitude": 47
1443
        };
1444
        latlong["MH"] = {
1445
            "latitude": 9,
1446
            "longitude": 168
1447
        };
1448
        latlong["MK"] = {
1449
            "latitude": 41.8333,
1450
            "longitude": 22
1451
        };
1452
        latlong["ML"] = {
1453
            "latitude": 17,
1454
            "longitude": -4
1455
        };
1456
        latlong["MM"] = {
1457
            "latitude": 22,
1458
            "longitude": 98
1459
        };
1460
        latlong["MN"] = {
1461
            "latitude": 46,
1462
            "longitude": 105
1463
        };
1464
        latlong["MO"] = {
1465
            "latitude": 22.1667,
1466
            "longitude": 113.55
1467
        };
1468
        latlong["MP"] = {
1469
            "latitude": 15.2,
1470
            "longitude": 145.75
1471
        };
1472
        latlong["MQ"] = {
1473
            "latitude": 14.6667,
1474
            "longitude": -61
1475
        };
1476
        latlong["MR"] = {
1477
            "latitude": 20,
1478
            "longitude": -12
1479
        };
1480
        latlong["MS"] = {
1481
            "latitude": 16.75,
1482
            "longitude": -62.2
1483
        };
1484
        latlong["MT"] = {
1485
            "latitude": 35.8333,
1486
            "longitude": 14.5833
1487
        };
1488
        latlong["MU"] = {
1489
            "latitude": -20.2833,
1490
            "longitude": 57.55
1491
        };
1492
        latlong["MV"] = {
1493
            "latitude": 3.25,
1494
            "longitude": 73
1495
        };
1496
        latlong["MW"] = {
1497
            "latitude": -13.5,
1498
            "longitude": 34
1499
        };
1500
        latlong["MX"] = {
1501
            "latitude": 23,
1502
            "longitude": -102
1503
        };
1504
        latlong["MY"] = {
1505
            "latitude": 2.5,
1506
            "longitude": 112.5
1507
        };
1508
        latlong["MZ"] = {
1509
            "latitude": -18.25,
1510
            "longitude": 35
1511
        };
1512
        latlong["NA"] = {
1513
            "latitude": -22,
1514
            "longitude": 17
1515
        };
1516
        latlong["NC"] = {
1517
            "latitude": -21.5,
1518
            "longitude": 165.5
1519
        };
1520
        latlong["NE"] = {
1521
            "latitude": 16,
1522
            "longitude": 8
1523
        };
1524
        latlong["NF"] = {
1525
            "latitude": -29.0333,
1526
            "longitude": 167.95
1527
        };
1528
        latlong["NG"] = {
1529
            "latitude": 10,
1530
            "longitude": 8
1531
        };
1532
        latlong["NI"] = {
1533
            "latitude": 13,
1534
            "longitude": -85
1535
        };
1536
        latlong["NL"] = {
1537
            "latitude": 52.5,
1538
            "longitude": 5.75
1539
        };
1540
        latlong["NO"] = {
1541
            "latitude": 62,
1542
            "longitude": 10
1543
        };
1544
        latlong["NP"] = {
1545
            "latitude": 28,
1546
            "longitude": 84
1547
        };
1548
        latlong["NR"] = {
1549
            "latitude": -0.5333,
1550
            "longitude": 166.9167
1551
        };
1552
        latlong["NU"] = {
1553
            "latitude": -19.0333,
1554
            "longitude": -169.8667
1555
        };
1556
        latlong["NZ"] = {
1557
            "latitude": -41,
1558
            "longitude": 174
1559
        };
1560
        latlong["OM"] = {
1561
            "latitude": 21,
1562
            "longitude": 57
1563
        };
1564
        latlong["PA"] = {
1565
            "latitude": 9,
1566
            "longitude": -80
1567
        };
1568
        latlong["PE"] = {
1569
            "latitude": -10,
1570
            "longitude": -76
1571
        };
1572
        latlong["PF"] = {
1573
            "latitude": -15,
1574
            "longitude": -140
1575
        };
1576
        latlong["PG"] = {
1577
            "latitude": -6,
1578
            "longitude": 147
1579
        };
1580
        latlong["PH"] = {
1581
            "latitude": 13,
1582
            "longitude": 122
1583
        };
1584
        latlong["PK"] = {
1585
            "latitude": 30,
1586
            "longitude": 70
1587
        };
1588
        latlong["PL"] = {
1589
            "latitude": 52,
1590
            "longitude": 20
1591
        };
1592
        latlong["PM"] = {
1593
            "latitude": 46.8333,
1594
            "longitude": -56.3333
1595
        };
1596
        latlong["PR"] = {
1597
            "latitude": 18.25,
1598
            "longitude": -66.5
1599
        };
1600
        latlong["PS"] = {
1601
            "latitude": 32,
1602
            "longitude": 35.25
1603
        };
1604
        latlong["PT"] = {
1605
            "latitude": 39.5,
1606
            "longitude": -8
1607
        };
1608
        latlong["PW"] = {
1609
            "latitude": 7.5,
1610
            "longitude": 134.5
1611
        };
1612
        latlong["PY"] = {
1613
            "latitude": -23,
1614
            "longitude": -58
1615
        };
1616
        latlong["QA"] = {
1617
            "latitude": 25.5,
1618
            "longitude": 51.25
1619
        };
1620
        latlong["RE"] = {
1621
            "latitude": -21.1,
1622
            "longitude": 55.6
1623
        };
1624
        latlong["RO"] = {
1625
            "latitude": 46,
1626
            "longitude": 25
1627
        };
1628
        latlong["RS"] = {
1629
            "latitude": 44,
1630
            "longitude": 21
1631
        };
1632
        latlong["RU"] = {
1633
            "latitude": 60,
1634
            "longitude": 100
1635
        };
1636
        latlong["RW"] = {
1637
            "latitude": -2,
1638
            "longitude": 30
1639
        };
1640
        latlong["SA"] = {
1641
            "latitude": 25,
1642
            "longitude": 45
1643
        };
1644
        latlong["SB"] = {
1645
            "latitude": -8,
1646
            "longitude": 159
1647
        };
1648
        latlong["SC"] = {
1649
            "latitude": -4.5833,
1650
            "longitude": 55.6667
1651
        };
1652
        latlong["SD"] = {
1653
            "latitude": 15,
1654
            "longitude": 30
1655
        };
1656
        latlong["SE"] = {
1657
            "latitude": 62,
1658
            "longitude": 15
1659
        };
1660
        latlong["SG"] = {
1661
            "latitude": 1.3667,
1662
            "longitude": 103.8
1663
        };
1664
        latlong["SH"] = {
1665
            "latitude": -15.9333,
1666
            "longitude": -5.7
1667
        };
1668
        latlong["SI"] = {
1669
            "latitude": 46,
1670
            "longitude": 15
1671
        };
1672
        latlong["SJ"] = {
1673
            "latitude": 78,
1674
            "longitude": 20
1675
        };
1676
        latlong["SK"] = {
1677
            "latitude": 48.6667,
1678
            "longitude": 19.5
1679
        };
1680
        latlong["SL"] = {
1681
            "latitude": 8.5,
1682
            "longitude": -11.5
1683
        };
1684
        latlong["SM"] = {
1685
            "latitude": 43.7667,
1686
            "longitude": 12.4167
1687
        };
1688
        latlong["SN"] = {
1689
            "latitude": 14,
1690
            "longitude": -14
1691
        };
1692
        latlong["SO"] = {
1693
            "latitude": 10,
1694
            "longitude": 49
1695
        };
1696
        latlong["SR"] = {
1697
            "latitude": 4,
1698
            "longitude": -56
1699
        };
1700
        latlong["ST"] = {
1701
            "latitude": 1,
1702
            "longitude": 7
1703
        };
1704
        latlong["SV"] = {
1705
            "latitude": 13.8333,
1706
            "longitude": -88.9167
1707
        };
1708
        latlong["SY"] = {
1709
            "latitude": 35,
1710
            "longitude": 38
1711
        };
1712
        latlong["SZ"] = {
1713
            "latitude": -26.5,
1714
            "longitude": 31.5
1715
        };
1716
        latlong["TC"] = {
1717
            "latitude": 21.75,
1718
            "longitude": -71.5833
1719
        };
1720
        latlong["TD"] = {
1721
            "latitude": 15,
1722
            "longitude": 19
1723
        };
1724
        latlong["TF"] = {
1725
            "latitude": -43,
1726
            "longitude": 67
1727
        };
1728
        latlong["TG"] = {
1729
            "latitude": 8,
1730
            "longitude": 1.1667
1731
        };
1732
        latlong["TH"] = {
1733
            "latitude": 15,
1734
            "longitude": 100
1735
        };
1736
        latlong["TJ"] = {
1737
            "latitude": 39,
1738
            "longitude": 71
1739
        };
1740
        latlong["TK"] = {
1741
            "latitude": -9,
1742
            "longitude": -172
1743
        };
1744
        latlong["TM"] = {
1745
            "latitude": 40,
1746
            "longitude": 60
1747
        };
1748
        latlong["TN"] = {
1749
            "latitude": 34,
1750
            "longitude": 9
1751
        };
1752
        latlong["TO"] = {
1753
            "latitude": -20,
1754
            "longitude": -175
1755
        };
1756
        latlong["TR"] = {
1757
            "latitude": 39,
1758
            "longitude": 35
1759
        };
1760
        latlong["TT"] = {
1761
            "latitude": 11,
1762
            "longitude": -61
1763
        };
1764
        latlong["TV"] = {
1765
            "latitude": -8,
1766
            "longitude": 178
1767
        };
1768
        latlong["TW"] = {
1769
            "latitude": 23.5,
1770
            "longitude": 121
1771
        };
1772
        latlong["TZ"] = {
1773
            "latitude": -6,
1774
            "longitude": 35
1775
        };
1776
        latlong["UA"] = {
1777
            "latitude": 49,
1778
            "longitude": 32
1779
        };
1780
        latlong["UG"] = {
1781
            "latitude": 1,
1782
            "longitude": 32
1783
        };
1784
        latlong["UM"] = {
1785
            "latitude": 19.2833,
1786
            "longitude": 166.6
1787
        };
1788
        latlong["US"] = {
1789
            "latitude": 38,
1790
            "longitude": -97
1791
        };
1792
        latlong["UY"] = {
1793
            "latitude": -33,
1794
            "longitude": -56
1795
        };
1796
        latlong["UZ"] = {
1797
            "latitude": 41,
1798
            "longitude": 64
1799
        };
1800
        latlong["VA"] = {
1801
            "latitude": 41.9,
1802
            "longitude": 12.45
1803
        };
1804
        latlong["VC"] = {
1805
            "latitude": 13.25,
1806
            "longitude": -61.2
1807
        };
1808
        latlong["VE"] = {
1809
            "latitude": 8,
1810
            "longitude": -66
1811
        };
1812
        latlong["VG"] = {
1813
            "latitude": 18.5,
1814
            "longitude": -64.5
1815
        };
1816
        latlong["VI"] = {
1817
            "latitude": 18.3333,
1818
            "longitude": -64.8333
1819
        };
1820
        latlong["VN"] = {
1821
            "latitude": 16,
1822
            "longitude": 106
1823
        };
1824
        latlong["VU"] = {
1825
            "latitude": -16,
1826
            "longitude": 167
1827
        };
1828
        latlong["WF"] = {
1829
            "latitude": -13.3,
1830
            "longitude": -176.2
1831
        };
1832
        latlong["WS"] = {
1833
            "latitude": -13.5833,
1834
            "longitude": -172.3333
1835
        };
1836
        latlong["YE"] = {
1837
            "latitude": 15,
1838
            "longitude": 48
1839
        };
1840
        latlong["YT"] = {
1841
            "latitude": -12.8333,
1842
            "longitude": 45.1667
1843
        };
1844
        latlong["ZA"] = {
1845
            "latitude": -29,
1846
            "longitude": 24
1847
        };
1848
        latlong["ZM"] = {
1849
            "latitude": -15,
1850
            "longitude": 30
1851
        };
1852
        latlong["ZW"] = {
1853
            "latitude": -20,
1854
            "longitude": 30
1855
        };
1856
 
1857
        var mapData = [{
1858
            "code": "AF",
1859
            "name": "Afghanistan",
1860
            "value": 32358260,
1861
            "color": "#eea638"
1862
        }, {
1863
            "code": "AL",
1864
            "name": "Albania",
1865
            "value": 3215988,
1866
            "color": "#d8854f"
1867
        }, {
1868
            "code": "DZ",
1869
            "name": "Algeria",
1870
            "value": 35980193,
1871
            "color": "#de4c4f"
1872
        }, {
1873
            "code": "AO",
1874
            "name": "Angola",
1875
            "value": 19618432,
1876
            "color": "#de4c4f"
1877
        }, {
1878
            "code": "AR",
1879
            "name": "Argentina",
1880
            "value": 40764561,
1881
            "color": "#86a965"
1882
        }, {
1883
            "code": "AM",
1884
            "name": "Armenia",
1885
            "value": 3100236,
1886
            "color": "#d8854f"
1887
        }, {
1888
            "code": "AU",
1889
            "name": "Australia",
1890
            "value": 22605732,
1891
            "color": "#8aabb0"
1892
        }, {
1893
            "code": "AT",
1894
            "name": "Austria",
1895
            "value": 8413429,
1896
            "color": "#d8854f"
1897
        }, {
1898
            "code": "AZ",
1899
            "name": "Azerbaijan",
1900
            "value": 9306023,
1901
            "color": "#d8854f"
1902
        }, {
1903
            "code": "BH",
1904
            "name": "Bahrain",
1905
            "value": 1323535,
1906
            "color": "#eea638"
1907
        }, {
1908
            "code": "BD",
1909
            "name": "Bangladesh",
1910
            "value": 150493658,
1911
            "color": "#eea638"
1912
        }, {
1913
            "code": "BY",
1914
            "name": "Belarus",
1915
            "value": 9559441,
1916
            "color": "#d8854f"
1917
        }, {
1918
            "code": "BE",
1919
            "name": "Belgium",
1920
            "value": 10754056,
1921
            "color": "#d8854f"
1922
        }, {
1923
            "code": "BJ",
1924
            "name": "Benin",
1925
            "value": 9099922,
1926
            "color": "#de4c4f"
1927
        }, {
1928
            "code": "BT",
1929
            "name": "Bhutan",
1930
            "value": 738267,
1931
            "color": "#eea638"
1932
        }, {
1933
            "code": "BO",
1934
            "name": "Bolivia",
1935
            "value": 10088108,
1936
            "color": "#86a965"
1937
        }, {
1938
            "code": "BA",
1939
            "name": "Bosnia and Herzegovina",
1940
            "value": 3752228,
1941
            "color": "#d8854f"
1942
        }, {
1943
            "code": "BW",
1944
            "name": "Botswana",
1945
            "value": 2030738,
1946
            "color": "#de4c4f"
1947
        }, {
1948
            "code": "BR",
1949
            "name": "Brazil",
1950
            "value": 196655014,
1951
            "color": "#86a965"
1952
        }, {
1953
            "code": "BN",
1954
            "name": "Brunei",
1955
            "value": 405938,
1956
            "color": "#eea638"
1957
        }, {
1958
            "code": "BG",
1959
            "name": "Bulgaria",
1960
            "value": 7446135,
1961
            "color": "#d8854f"
1962
        }, {
1963
            "code": "BF",
1964
            "name": "Burkina Faso",
1965
            "value": 16967845,
1966
            "color": "#de4c4f"
1967
        }, {
1968
            "code": "BI",
1969
            "name": "Burundi",
1970
            "value": 8575172,
1971
            "color": "#de4c4f"
1972
        }, {
1973
            "code": "KH",
1974
            "name": "Cambodia",
1975
            "value": 14305183,
1976
            "color": "#eea638"
1977
        }, {
1978
            "code": "CM",
1979
            "name": "Cameroon",
1980
            "value": 20030362,
1981
            "color": "#de4c4f"
1982
        }, {
1983
            "code": "CA",
1984
            "name": "Canada",
1985
            "value": 34349561,
1986
            "color": "#a7a737"
1987
        }, {
1988
            "code": "CV",
1989
            "name": "Cape Verde",
1990
            "value": 500585,
1991
            "color": "#de4c4f"
1992
        }, {
1993
            "code": "CF",
1994
            "name": "Central African Rep.",
1995
            "value": 4486837,
1996
            "color": "#de4c4f"
1997
        }, {
1998
            "code": "TD",
1999
            "name": "Chad",
2000
            "value": 11525496,
2001
            "color": "#de4c4f"
2002
        }, {
2003
            "code": "CL",
2004
            "name": "Chile",
2005
            "value": 17269525,
2006
            "color": "#86a965"
2007
        }, {
2008
            "code": "CN",
2009
            "name": "China",
2010
            "value": 1347565324,
2011
            "color": "#eea638"
2012
        }, {
2013
            "code": "CO",
2014
            "name": "Colombia",
2015
            "value": 46927125,
2016
            "color": "#86a965"
2017
        }, {
2018
            "code": "KM",
2019
            "name": "Comoros",
2020
            "value": 753943,
2021
            "color": "#de4c4f"
2022
        }, {
2023
            "code": "CD",
2024
            "name": "Congo, Dem. Rep.",
2025
            "value": 67757577,
2026
            "color": "#de4c4f"
2027
        }, {
2028
            "code": "CG",
2029
            "name": "Congo, Rep.",
2030
            "value": 4139748,
2031
            "color": "#de4c4f"
2032
        }, {
2033
            "code": "CR",
2034
            "name": "Costa Rica",
2035
            "value": 4726575,
2036
            "color": "#a7a737"
2037
        }, {
2038
            "code": "CI",
2039
            "name": "Cote d'Ivoire",
2040
            "value": 20152894,
2041
            "color": "#de4c4f"
2042
        }, {
2043
            "code": "HR",
2044
            "name": "Croatia",
2045
            "value": 4395560,
2046
            "color": "#d8854f"
2047
        }, {
2048
            "code": "CU",
2049
            "name": "Cuba",
2050
            "value": 11253665,
2051
            "color": "#a7a737"
2052
        }, {
2053
            "code": "CY",
2054
            "name": "Cyprus",
2055
            "value": 1116564,
2056
            "color": "#d8854f"
2057
        }, {
2058
            "code": "CZ",
2059
            "name": "Czech Rep.",
2060
            "value": 10534293,
2061
            "color": "#d8854f"
2062
        }, {
2063
            "code": "DK",
2064
            "name": "Denmark",
2065
            "value": 5572594,
2066
            "color": "#d8854f"
2067
        }, {
2068
            "code": "DJ",
2069
            "name": "Djibouti",
2070
            "value": 905564,
2071
            "color": "#de4c4f"
2072
        }, {
2073
            "code": "DO",
2074
            "name": "Dominican Rep.",
2075
            "value": 10056181,
2076
            "color": "#a7a737"
2077
        }, {
2078
            "code": "EC",
2079
            "name": "Ecuador",
2080
            "value": 14666055,
2081
            "color": "#86a965"
2082
        }, {
2083
            "code": "EG",
2084
            "name": "Egypt",
2085
            "value": 82536770,
2086
            "color": "#de4c4f"
2087
        }, {
2088
            "code": "SV",
2089
            "name": "El Salvador",
2090
            "value": 6227491,
2091
            "color": "#a7a737"
2092
        }, {
2093
            "code": "GQ",
2094
            "name": "Equatorial Guinea",
2095
            "value": 720213,
2096
            "color": "#de4c4f"
2097
        }, {
2098
            "code": "ER",
2099
            "name": "Eritrea",
2100
            "value": 5415280,
2101
            "color": "#de4c4f"
2102
        }, {
2103
            "code": "EE",
2104
            "name": "Estonia",
2105
            "value": 1340537,
2106
            "color": "#d8854f"
2107
        }, {
2108
            "code": "ET",
2109
            "name": "Ethiopia",
2110
            "value": 84734262,
2111
            "color": "#de4c4f"
2112
        }, {
2113
            "code": "FJ",
2114
            "name": "Fiji",
2115
            "value": 868406,
2116
            "color": "#8aabb0"
2117
        }, {
2118
            "code": "FI",
2119
            "name": "Finland",
2120
            "value": 5384770,
2121
            "color": "#d8854f"
2122
        }, {
2123
            "code": "FR",
2124
            "name": "France",
2125
            "value": 63125894,
2126
            "color": "#d8854f"
2127
        }, {
2128
            "code": "GA",
2129
            "name": "Gabon",
2130
            "value": 1534262,
2131
            "color": "#de4c4f"
2132
        }, {
2133
            "code": "GM",
2134
            "name": "Gambia",
2135
            "value": 1776103,
2136
            "color": "#de4c4f"
2137
        }, {
2138
            "code": "GE",
2139
            "name": "Georgia",
2140
            "value": 4329026,
2141
            "color": "#d8854f"
2142
        }, {
2143
            "code": "DE",
2144
            "name": "Germany",
2145
            "value": 82162512,
2146
            "color": "#d8854f"
2147
        }, {
2148
            "code": "GH",
2149
            "name": "Ghana",
2150
            "value": 24965816,
2151
            "color": "#de4c4f"
2152
        }, {
2153
            "code": "GR",
2154
            "name": "Greece",
2155
            "value": 11390031,
2156
            "color": "#d8854f"
2157
        }, {
2158
            "code": "GT",
2159
            "name": "Guatemala",
2160
            "value": 14757316,
2161
            "color": "#a7a737"
2162
        }, {
2163
            "code": "GN",
2164
            "name": "Guinea",
2165
            "value": 10221808,
2166
            "color": "#de4c4f"
2167
        }, {
2168
            "code": "GW",
2169
            "name": "Guinea-Bissau",
2170
            "value": 1547061,
2171
            "color": "#de4c4f"
2172
        }, {
2173
            "code": "GY",
2174
            "name": "Guyana",
2175
            "value": 756040,
2176
            "color": "#86a965"
2177
        }, {
2178
            "code": "HT",
2179
            "name": "Haiti",
2180
            "value": 10123787,
2181
            "color": "#a7a737"
2182
        }, {
2183
            "code": "HN",
2184
            "name": "Honduras",
2185
            "value": 7754687,
2186
            "color": "#a7a737"
2187
        }, {
2188
            "code": "HK",
2189
            "name": "Hong Kong, China",
2190
            "value": 7122187,
2191
            "color": "#eea638"
2192
        }, {
2193
            "code": "HU",
2194
            "name": "Hungary",
2195
            "value": 9966116,
2196
            "color": "#d8854f"
2197
        }, {
2198
            "code": "IS",
2199
            "name": "Iceland",
2200
            "value": 324366,
2201
            "color": "#d8854f"
2202
        }, {
2203
            "code": "IN",
2204
            "name": "India",
2205
            "value": 1241491960,
2206
            "color": "#eea638"
2207
        }, {
2208
            "code": "ID",
2209
            "name": "Indonesia",
2210
            "value": 242325638,
2211
            "color": "#eea638"
2212
        }, {
2213
            "code": "IR",
2214
            "name": "Iran",
2215
            "value": 74798599,
2216
            "color": "#eea638"
2217
        }, {
2218
            "code": "IQ",
2219
            "name": "Iraq",
2220
            "value": 32664942,
2221
            "color": "#eea638"
2222
        }, {
2223
            "code": "IE",
2224
            "name": "Ireland",
2225
            "value": 4525802,
2226
            "color": "#d8854f"
2227
        }, {
2228
            "code": "IL",
2229
            "name": "Israel",
2230
            "value": 7562194,
2231
            "color": "#eea638"
2232
        }, {
2233
            "code": "IT",
2234
            "name": "Italy",
2235
            "value": 60788694,
2236
            "color": "#d8854f"
2237
        }, {
2238
            "code": "JM",
2239
            "name": "Jamaica",
2240
            "value": 2751273,
2241
            "color": "#a7a737"
2242
        }, {
2243
            "code": "JP",
2244
            "name": "Japan",
2245
            "value": 126497241,
2246
            "color": "#eea638"
2247
        }, {
2248
            "code": "JO",
2249
            "name": "Jordan",
2250
            "value": 6330169,
2251
            "color": "#eea638"
2252
        }, {
2253
            "code": "KZ",
2254
            "name": "Kazakhstan",
2255
            "value": 16206750,
2256
            "color": "#eea638"
2257
        }, {
2258
            "code": "KE",
2259
            "name": "Kenya",
2260
            "value": 41609728,
2261
            "color": "#de4c4f"
2262
        }, {
2263
            "code": "KP",
2264
            "name": "Korea, Dem. Rep.",
2265
            "value": 24451285,
2266
            "color": "#eea638"
2267
        }, {
2268
            "code": "KR",
2269
            "name": "Korea, Rep.",
2270
            "value": 48391343,
2271
            "color": "#eea638"
2272
        }, {
2273
            "code": "KW",
2274
            "name": "Kuwait",
2275
            "value": 2818042,
2276
            "color": "#eea638"
2277
        }, {
2278
            "code": "KG",
2279
            "name": "Kyrgyzstan",
2280
            "value": 5392580,
2281
            "color": "#eea638"
2282
        }, {
2283
            "code": "LA",
2284
            "name": "Laos",
2285
            "value": 6288037,
2286
            "color": "#eea638"
2287
        }, {
2288
            "code": "LV",
2289
            "name": "Latvia",
2290
            "value": 2243142,
2291
            "color": "#d8854f"
2292
        }, {
2293
            "code": "LB",
2294
            "name": "Lebanon",
2295
            "value": 4259405,
2296
            "color": "#eea638"
2297
        }, {
2298
            "code": "LS",
2299
            "name": "Lesotho",
2300
            "value": 2193843,
2301
            "color": "#de4c4f"
2302
        }, {
2303
            "code": "LR",
2304
            "name": "Liberia",
2305
            "value": 4128572,
2306
            "color": "#de4c4f"
2307
        }, {
2308
            "code": "LY",
2309
            "name": "Libya",
2310
            "value": 6422772,
2311
            "color": "#de4c4f"
2312
        }, {
2313
            "code": "LT",
2314
            "name": "Lithuania",
2315
            "value": 3307481,
2316
            "color": "#d8854f"
2317
        }, {
2318
            "code": "LU",
2319
            "name": "Luxembourg",
2320
            "value": 515941,
2321
            "color": "#d8854f"
2322
        }, {
2323
            "code": "MK",
2324
            "name": "Macedonia, FYR",
2325
            "value": 2063893,
2326
            "color": "#d8854f"
2327
        }, {
2328
            "code": "MG",
2329
            "name": "Madagascar",
2330
            "value": 21315135,
2331
            "color": "#de4c4f"
2332
        }, {
2333
            "code": "MW",
2334
            "name": "Malawi",
2335
            "value": 15380888,
2336
            "color": "#de4c4f"
2337
        }, {
2338
            "code": "MY",
2339
            "name": "Malaysia",
2340
            "value": 28859154,
2341
            "color": "#eea638"
2342
        }, {
2343
            "code": "ML",
2344
            "name": "Mali",
2345
            "value": 15839538,
2346
            "color": "#de4c4f"
2347
        }, {
2348
            "code": "MR",
2349
            "name": "Mauritania",
2350
            "value": 3541540,
2351
            "color": "#de4c4f"
2352
        }, {
2353
            "code": "MU",
2354
            "name": "Mauritius",
2355
            "value": 1306593,
2356
            "color": "#de4c4f"
2357
        }, {
2358
            "code": "MX",
2359
            "name": "Mexico",
2360
            "value": 114793341,
2361
            "color": "#a7a737"
2362
        }, {
2363
            "code": "MD",
2364
            "name": "Moldova",
2365
            "value": 3544864,
2366
            "color": "#d8854f"
2367
        }, {
2368
            "code": "MN",
2369
            "name": "Mongolia",
2370
            "value": 2800114,
2371
            "color": "#eea638"
2372
        }, {
2373
            "code": "ME",
2374
            "name": "Montenegro",
2375
            "value": 632261,
2376
            "color": "#d8854f"
2377
        }, {
2378
            "code": "MA",
2379
            "name": "Morocco",
2380
            "value": 32272974,
2381
            "color": "#de4c4f"
2382
        }, {
2383
            "code": "MZ",
2384
            "name": "Mozambique",
2385
            "value": 23929708,
2386
            "color": "#de4c4f"
2387
        }, {
2388
            "code": "MM",
2389
            "name": "Myanmar",
2390
            "value": 48336763,
2391
            "color": "#eea638"
2392
        }, {
2393
            "code": "NA",
2394
            "name": "Namibia",
2395
            "value": 2324004,
2396
            "color": "#de4c4f"
2397
        }, {
2398
            "code": "NP",
2399
            "name": "Nepal",
2400
            "value": 30485798,
2401
            "color": "#eea638"
2402
        }, {
2403
            "code": "NL",
2404
            "name": "Netherlands",
2405
            "value": 16664746,
2406
            "color": "#d8854f"
2407
        }, {
2408
            "code": "NZ",
2409
            "name": "New Zealand",
2410
            "value": 4414509,
2411
            "color": "#8aabb0"
2412
        }, {
2413
            "code": "NI",
2414
            "name": "Nicaragua",
2415
            "value": 5869859,
2416
            "color": "#a7a737"
2417
        }, {
2418
            "code": "NE",
2419
            "name": "Niger",
2420
            "value": 16068994,
2421
            "color": "#de4c4f"
2422
        }, {
2423
            "code": "NG",
2424
            "name": "Nigeria",
2425
            "value": 162470737,
2426
            "color": "#de4c4f"
2427
        }, {
2428
            "code": "NO",
2429
            "name": "Norway",
2430
            "value": 4924848,
2431
            "color": "#d8854f"
2432
        }, {
2433
            "code": "OM",
2434
            "name": "Oman",
2435
            "value": 2846145,
2436
            "color": "#eea638"
2437
        }, {
2438
            "code": "PK",
2439
            "name": "Pakistan",
2440
            "value": 176745364,
2441
            "color": "#eea638"
2442
        }, {
2443
            "code": "PA",
2444
            "name": "Panama",
2445
            "value": 3571185,
2446
            "color": "#a7a737"
2447
        }, {
2448
            "code": "PG",
2449
            "name": "Papua New Guinea",
2450
            "value": 7013829,
2451
            "color": "#8aabb0"
2452
        }, {
2453
            "code": "PY",
2454
            "name": "Paraguay",
2455
            "value": 6568290,
2456
            "color": "#86a965"
2457
        }, {
2458
            "code": "PE",
2459
            "name": "Peru",
2460
            "value": 29399817,
2461
            "color": "#86a965"
2462
        }, {
2463
            "code": "PH",
2464
            "name": "Philippines",
2465
            "value": 94852030,
2466
            "color": "#eea638"
2467
        }, {
2468
            "code": "PL",
2469
            "name": "Poland",
2470
            "value": 38298949,
2471
            "color": "#d8854f"
2472
        }, {
2473
            "code": "PT",
2474
            "name": "Portugal",
2475
            "value": 10689663,
2476
            "color": "#d8854f"
2477
        }, {
2478
            "code": "PR",
2479
            "name": "Puerto Rico",
2480
            "value": 3745526,
2481
            "color": "#a7a737"
2482
        }, {
2483
            "code": "QA",
2484
            "name": "Qatar",
2485
            "value": 1870041,
2486
            "color": "#eea638"
2487
        }, {
2488
            "code": "RO",
2489
            "name": "Romania",
2490
            "value": 21436495,
2491
            "color": "#d8854f"
2492
        }, {
2493
            "code": "RU",
2494
            "name": "Russia",
2495
            "value": 142835555,
2496
            "color": "#d8854f"
2497
        }, {
2498
            "code": "RW",
2499
            "name": "Rwanda",
2500
            "value": 10942950,
2501
            "color": "#de4c4f"
2502
        }, {
2503
            "code": "SA",
2504
            "name": "Saudi Arabia",
2505
            "value": 28082541,
2506
            "color": "#eea638"
2507
        }, {
2508
            "code": "SN",
2509
            "name": "Senegal",
2510
            "value": 12767556,
2511
            "color": "#de4c4f"
2512
        }, {
2513
            "code": "RS",
2514
            "name": "Serbia",
2515
            "value": 9853969,
2516
            "color": "#d8854f"
2517
        }, {
2518
            "code": "SL",
2519
            "name": "Sierra Leone",
2520
            "value": 5997486,
2521
            "color": "#de4c4f"
2522
        }, {
2523
            "code": "SG",
2524
            "name": "Singapore",
2525
            "value": 5187933,
2526
            "color": "#eea638"
2527
        }, {
2528
            "code": "SK",
2529
            "name": "Slovak Republic",
2530
            "value": 5471502,
2531
            "color": "#d8854f"
2532
        }, {
2533
            "code": "SI",
2534
            "name": "Slovenia",
2535
            "value": 2035012,
2536
            "color": "#d8854f"
2537
        }, {
2538
            "code": "SB",
2539
            "name": "Solomon Islands",
2540
            "value": 552267,
2541
            "color": "#8aabb0"
2542
        }, {
2543
            "code": "SO",
2544
            "name": "Somalia",
2545
            "value": 9556873,
2546
            "color": "#de4c4f"
2547
        }, {
2548
            "code": "ZA",
2549
            "name": "South Africa",
2550
            "value": 50459978,
2551
            "color": "#de4c4f"
2552
        }, {
2553
            "code": "ES",
2554
            "name": "Spain",
2555
            "value": 46454895,
2556
            "color": "#d8854f"
2557
        }, {
2558
            "code": "LK",
2559
            "name": "Sri Lanka",
2560
            "value": 21045394,
2561
            "color": "#eea638"
2562
        }, {
2563
            "code": "SD",
2564
            "name": "Sudan",
2565
            "value": 34735288,
2566
            "color": "#de4c4f"
2567
        }, {
2568
            "code": "SR",
2569
            "name": "Suriname",
2570
            "value": 529419,
2571
            "color": "#86a965"
2572
        }, {
2573
            "code": "SZ",
2574
            "name": "Swaziland",
2575
            "value": 1203330,
2576
            "color": "#de4c4f"
2577
        }, {
2578
            "code": "SE",
2579
            "name": "Sweden",
2580
            "value": 9440747,
2581
            "color": "#d8854f"
2582
        }, {
2583
            "code": "CH",
2584
            "name": "Switzerland",
2585
            "value": 7701690,
2586
            "color": "#d8854f"
2587
        }, {
2588
            "code": "SY",
2589
            "name": "Syria",
2590
            "value": 20766037,
2591
            "color": "#eea638"
2592
        }, {
2593
            "code": "TW",
2594
            "name": "Taiwan",
2595
            "value": 23072000,
2596
            "color": "#eea638"
2597
        }, {
2598
            "code": "TJ",
2599
            "name": "Tajikistan",
2600
            "value": 6976958,
2601
            "color": "#eea638"
2602
        }, {
2603
            "code": "TZ",
2604
            "name": "Tanzania",
2605
            "value": 46218486,
2606
            "color": "#de4c4f"
2607
        }, {
2608
            "code": "TH",
2609
            "name": "Thailand",
2610
            "value": 69518555,
2611
            "color": "#eea638"
2612
        }, {
2613
            "code": "TG",
2614
            "name": "Togo",
2615
            "value": 6154813,
2616
            "color": "#de4c4f"
2617
        }, {
2618
            "code": "TT",
2619
            "name": "Trinidad and Tobago",
2620
            "value": 1346350,
2621
            "color": "#a7a737"
2622
        }, {
2623
            "code": "TN",
2624
            "name": "Tunisia",
2625
            "value": 10594057,
2626
            "color": "#de4c4f"
2627
        }, {
2628
            "code": "TR",
2629
            "name": "Turkey",
2630
            "value": 73639596,
2631
            "color": "#d8854f"
2632
        }, {
2633
            "code": "TM",
2634
            "name": "Turkmenistan",
2635
            "value": 5105301,
2636
            "color": "#eea638"
2637
        }, {
2638
            "code": "UG",
2639
            "name": "Uganda",
2640
            "value": 34509205,
2641
            "color": "#de4c4f"
2642
        }, {
2643
            "code": "UA",
2644
            "name": "Ukraine",
2645
            "value": 45190180,
2646
            "color": "#d8854f"
2647
        }, {
2648
            "code": "AE",
2649
            "name": "United Arab Emirates",
2650
            "value": 7890924,
2651
            "color": "#eea638"
2652
        }, {
2653
            "code": "GB",
2654
            "name": "United Kingdom",
2655
            "value": 62417431,
2656
            "color": "#d8854f"
2657
        }, {
2658
            "code": "US",
2659
            "name": "United States",
2660
            "value": 313085380,
2661
            "color": "#a7a737"
2662
        }, {
2663
            "code": "UY",
2664
            "name": "Uruguay",
2665
            "value": 3380008,
2666
            "color": "#86a965"
2667
        }, {
2668
            "code": "UZ",
2669
            "name": "Uzbekistan",
2670
            "value": 27760267,
2671
            "color": "#eea638"
2672
        }, {
2673
            "code": "VE",
2674
            "name": "Venezuela",
2675
            "value": 29436891,
2676
            "color": "#86a965"
2677
        }, {
2678
            "code": "PS",
2679
            "name": "West Bank and Gaza",
2680
            "value": 4152369,
2681
            "color": "#eea638"
2682
        }, {
2683
            "code": "VN",
2684
            "name": "Vietnam",
2685
            "value": 88791996,
2686
            "color": "#eea638"
2687
        }, {
2688
            "code": "YE",
2689
            "name": "Yemen, Rep.",
2690
            "value": 24799880,
2691
            "color": "#eea638"
2692
        }, {
2693
            "code": "ZM",
2694
            "name": "Zambia",
2695
            "value": 13474959,
2696
            "color": "#de4c4f"
2697
        }, {
2698
            "code": "ZW",
2699
            "name": "Zimbabwe",
2700
            "value": 12754378,
2701
            "color": "#de4c4f"
2702
        }];
2703
 
2704
 
2705
        var map;
2706
        var minBulletSize = 3;
2707
        var maxBulletSize = 70;
2708
        var min = Infinity;
2709
        var max = -Infinity;
2710
 
2711
 
2712
        // get min and max values
2713
        for (var i = 0; i < mapData.length; i++) {
2714
            var value = mapData[i].value;
2715
            if (value < min) {
2716
                min = value;
2717
            }
2718
            if (value > max) {
2719
                max = value;
2720
            }
2721
        }
2722
 
2723
        // build map
2724
        AmCharts.ready(function() {
2725
            AmCharts.theme = AmCharts.themes.dark;
2726
            map = new AmCharts.AmMap();
2727
            map.pathToImages = Metronic.getGlobalPluginsPath() + "amcharts/ammap/images/",
2728
 
2729
            map.fontFamily = 'Open Sans';
2730
            map.fontSize = '13';
2731
            map.color = '#888';
2732
 
2733
            map.addTitle("Population of the World in 2011", 14);
2734
            map.addTitle("source: Gapminder", 11);
2735
            map.areasSettings = {
2736
                unlistedAreasColor: "#000000",
2737
                unlistedAreasAlpha: 0.1
2738
            };
2739
            map.imagesSettings.balloonText = "<span style='font-size:14px;'><b>[[title]]</b>: [[value]]</span>";
2740
 
2741
            var dataProvider = {
2742
                mapVar: AmCharts.maps.worldLow,
2743
                images: []
2744
            }
2745
 
2746
            // create circle for each country
2747
            for (var i = 0; i < mapData.length; i++) {
2748
                var dataItem = mapData[i];
2749
                var value = dataItem.value;
2750
                // calculate size of a bubble
2751
                var size = (value - min) / (max - min) * (maxBulletSize - minBulletSize) + minBulletSize;
2752
                if (size < minBulletSize) {
2753
                    size = minBulletSize;
2754
                }
2755
                var id = dataItem.code;
2756
 
2757
                dataProvider.images.push({
2758
                    type: "circle",
2759
                    width: size,
2760
                    height: size,
2761
                    color: dataItem.color,
2762
                    longitude: latlong[id].longitude,
2763
                    latitude: latlong[id].latitude,
2764
                    title: dataItem.name,
2765
                    value: value
2766
                });
2767
            }
2768
 
2769
            map.dataProvider = dataProvider;
2770
 
2771
            map.write("chart_10");
2772
        });
2773
 
2774
        $('#chart_10').closest('.portlet').find('.fullscreen').click(function() {
2775
            map.invalidateSize();
2776
        });
2777
    }
2778
 
2779
    var initChartSample11 = function() {
2780
        // svg path for target icon
2781
        var targetSVG = "M9,0C4.029,0,0,4.029,0,9s4.029,9,9,9s9-4.029,9-9S13.971,0,9,0z M9,15.93 c-3.83,0-6.93-3.1-6.93-6.93S5.17,2.07,9,2.07s6.93,3.1,6.93,6.93S12.83,15.93,9,15.93 M12.5,9c0,1.933-1.567,3.5-3.5,3.5S5.5,10.933,5.5,9S7.067,5.5,9,5.5 S12.5,7.067,12.5,9z";
2782
        // svg path for plane icon
2783
        var planeSVG = "M19.671,8.11l-2.777,2.777l-3.837-0.861c0.362-0.505,0.916-1.683,0.464-2.135c-0.518-0.517-1.979,0.278-2.305,0.604l-0.913,0.913L7.614,8.804l-2.021,2.021l2.232,1.061l-0.082,0.082l1.701,1.701l0.688-0.687l3.164,1.504L9.571,18.21H6.413l-1.137,1.138l3.6,0.948l1.83,1.83l0.947,3.598l1.137-1.137V21.43l3.725-3.725l1.504,3.164l-0.687,0.687l1.702,1.701l0.081-0.081l1.062,2.231l2.02-2.02l-0.604-2.689l0.912-0.912c0.326-0.326,1.121-1.789,0.604-2.306c-0.452-0.452-1.63,0.101-2.135,0.464l-0.861-3.838l2.777-2.777c0.947-0.947,3.599-4.862,2.62-5.839C24.533,4.512,20.618,7.163,19.671,8.11z";
2784
 
2785
        var map = AmCharts.makeChart("chart_11", {
2786
            type: "map",
2787
            "theme": "light",
2788
            pathToImages: Metronic.getGlobalPluginsPath() + "amcharts/ammap/images/",
2789
 
2790
            "fontFamily": 'Open Sans',
2791
 
2792
            "color":    '#888',
2793
 
2794
            dataProvider: {
2795
                map: "worldLow",
2796
                linkToObject: "london",
2797
                images: [{
2798
                        id: "london",
2799
                        color: "#000000",
2800
                        svgPath: targetSVG,
2801
                        title: "London",
2802
                        latitude: 51.5002,
2803
                        longitude: -0.1262,
2804
                        scale: 1.5,
2805
                        zoomLevel: 2.74,
2806
                        zoomLongitude: -20.1341,
2807
                        zoomLatitude: 49.1712,
2808
 
2809
                        lines: [{
2810
                            latitudes: [51.5002, 50.4422],
2811
                            longitudes: [-0.1262, 30.5367]
2812
                        }, {
2813
                            latitudes: [51.5002, 46.9480],
2814
                            longitudes: [-0.1262, 7.4481]
2815
                        }, {
2816
                            latitudes: [51.5002, 59.3328],
2817
                            longitudes: [-0.1262, 18.0645]
2818
                        }, {
2819
                            latitudes: [51.5002, 40.4167],
2820
                            longitudes: [-0.1262, -3.7033]
2821
                        }, {
2822
                            latitudes: [51.5002, 46.0514],
2823
                            longitudes: [-0.1262, 14.5060]
2824
                        }, {
2825
                            latitudes: [51.5002, 48.2116],
2826
                            longitudes: [-0.1262, 17.1547]
2827
                        }, {
2828
                            latitudes: [51.5002, 44.8048],
2829
                            longitudes: [-0.1262, 20.4781]
2830
                        }, {
2831
                            latitudes: [51.5002, 55.7558],
2832
                            longitudes: [-0.1262, 37.6176]
2833
                        }, {
2834
                            latitudes: [51.5002, 38.7072],
2835
                            longitudes: [-0.1262, -9.1355]
2836
                        }, {
2837
                            latitudes: [51.5002, 54.6896],
2838
                            longitudes: [-0.1262, 25.2799]
2839
                        }, {
2840
                            latitudes: [51.5002, 64.1353],
2841
                            longitudes: [-0.1262, -21.8952]
2842
                        }, {
2843
                            latitudes: [51.5002, 40.4300],
2844
                            longitudes: [-0.1262, -74.0000]
2845
                        }],
2846
 
2847
                        images: [{
2848
                            label: "Flights from London",
2849
                            svgPath: planeSVG,
2850
                            left: 100,
2851
                            top: 45,
2852
                            labelShiftY: 5,
2853
                            color: "#CC0000",
2854
                            labelColor: "#CC0000",
2855
                            labelRollOverColor: "#CC0000",
2856
                            labelFontSize: 20
2857
                        }, {
2858
                            label: "show flights from Vilnius",
2859
                            left: 106,
2860
                            top: 70,
2861
                            labelColor: "#000000",
2862
                            labelRollOverColor: "#CC0000",
2863
                            labelFontSize: 11,
2864
                            linkToObject: "vilnius"
2865
                        }]
2866
                    },
2867
 
2868
                    {
2869
                        id: "vilnius",
2870
                        color: "#000000",
2871
                        svgPath: targetSVG,
2872
                        title: "Vilnius",
2873
                        latitude: 54.6896,
2874
                        longitude: 25.2799,
2875
                        scale: 1.5,
2876
                        zoomLevel: 4.92,
2877
                        zoomLongitude: 15.4492,
2878
                        zoomLatitude: 50.2631,
2879
 
2880
                        lines: [{
2881
                            latitudes: [54.6896, 50.8371],
2882
                            longitudes: [25.2799, 4.3676]
2883
                        }, {
2884
                            latitudes: [54.6896, 59.9138],
2885
                            longitudes: [25.2799, 10.7387]
2886
                        }, {
2887
                            latitudes: [54.6896, 40.4167],
2888
                            longitudes: [25.2799, -3.7033]
2889
                        }, {
2890
                            latitudes: [54.6896, 50.0878],
2891
                            longitudes: [25.2799, 14.4205]
2892
                        }, {
2893
                            latitudes: [54.6896, 48.2116],
2894
                            longitudes: [25.2799, 17.1547]
2895
                        }, {
2896
                            latitudes: [54.6896, 44.8048],
2897
                            longitudes: [25.2799, 20.4781]
2898
                        }, {
2899
                            latitudes: [54.6896, 55.7558],
2900
                            longitudes: [25.2799, 37.6176]
2901
                        }, {
2902
                            latitudes: [54.6896, 37.9792],
2903
                            longitudes: [25.2799, 23.7166]
2904
                        }, {
2905
                            latitudes: [54.6896, 54.6896],
2906
                            longitudes: [25.2799, 25.2799]
2907
                        }, {
2908
                            latitudes: [54.6896, 51.5002],
2909
                            longitudes: [25.2799, -0.1262]
2910
                        }, {
2911
                            latitudes: [54.6896, 53.3441],
2912
                            longitudes: [25.2799, -6.2675]
2913
                        }],
2914
 
2915
                        images: [{
2916
                            label: "Flights from Vilnius",
2917
                            svgPath: planeSVG,
2918
                            left: 100,
2919
                            top: 45,
2920
                            labelShiftY: 5,
2921
                            color: "#CC0000",
2922
                            labelColor: "#CC0000",
2923
                            labelRollOverColor: "#CC0000",
2924
                            labelFontSize: 20
2925
                        }, {
2926
                            label: "show flights from London",
2927
                            left: 106,
2928
                            top: 70,
2929
                            labelColor: "#000000",
2930
                            labelRollOverColor: "#CC0000",
2931
                            labelFontSize: 11,
2932
                            linkToObject: "london"
2933
                        }]
2934
                    }, {
2935
                        svgPath: targetSVG,
2936
                        title: "Brussels",
2937
                        latitude: 50.8371,
2938
                        longitude: 4.3676
2939
                    }, {
2940
                        svgPath: targetSVG,
2941
                        title: "Prague",
2942
                        latitude: 50.0878,
2943
                        longitude: 14.4205
2944
                    }, {
2945
                        svgPath: targetSVG,
2946
                        title: "Athens",
2947
                        latitude: 37.9792,
2948
                        longitude: 23.7166
2949
                    }, {
2950
                        svgPath: targetSVG,
2951
                        title: "Reykjavik",
2952
                        latitude: 64.1353,
2953
                        longitude: -21.8952
2954
                    }, {
2955
                        svgPath: targetSVG,
2956
                        title: "Dublin",
2957
                        latitude: 53.3441,
2958
                        longitude: -6.2675
2959
                    }, {
2960
                        svgPath: targetSVG,
2961
                        title: "Oslo",
2962
                        latitude: 59.9138,
2963
                        longitude: 10.7387
2964
                    }, {
2965
                        svgPath: targetSVG,
2966
                        title: "Lisbon",
2967
                        latitude: 38.7072,
2968
                        longitude: -9.1355
2969
                    }, {
2970
                        svgPath: targetSVG,
2971
                        title: "Moscow",
2972
                        latitude: 55.7558,
2973
                        longitude: 37.6176
2974
                    }, {
2975
                        svgPath: targetSVG,
2976
                        title: "Belgrade",
2977
                        latitude: 44.8048,
2978
                        longitude: 20.4781
2979
                    }, {
2980
                        svgPath: targetSVG,
2981
                        title: "Bratislava",
2982
                        latitude: 48.2116,
2983
                        longitude: 17.1547
2984
                    }, {
2985
                        svgPath: targetSVG,
2986
                        title: "Ljubljana",
2987
                        latitude: 46.0514,
2988
                        longitude: 14.5060
2989
                    }, {
2990
                        svgPath: targetSVG,
2991
                        title: "Madrid",
2992
                        latitude: 40.4167,
2993
                        longitude: -3.7033
2994
                    }, {
2995
                        svgPath: targetSVG,
2996
                        title: "Stockholm",
2997
                        latitude: 59.3328,
2998
                        longitude: 18.0645
2999
                    }, {
3000
                        svgPath: targetSVG,
3001
                        title: "Bern",
3002
                        latitude: 46.9480,
3003
                        longitude: 7.4481
3004
                    }, {
3005
                        svgPath: targetSVG,
3006
                        title: "Kiev",
3007
                        latitude: 50.4422,
3008
                        longitude: 30.5367
3009
                    }, {
3010
                        svgPath: targetSVG,
3011
                        title: "Paris",
3012
                        latitude: 48.8567,
3013
                        longitude: 2.3510
3014
                    }, {
3015
                        svgPath: targetSVG,
3016
                        title: "New York",
3017
                        latitude: 40.43,
3018
                        longitude: -74
3019
                    }
3020
                ]
3021
            },
3022
 
3023
            areasSettings: {
3024
                unlistedAreasColor: "#FFCC00"
3025
            },
3026
 
3027
            imagesSettings: {
3028
                color: "#CC0000",
3029
                rollOverColor: "#CC0000",
3030
                selectedColor: "#000000"
3031
            },
3032
 
3033
            linesSettings: {
3034
                color: "#CC0000",
3035
                alpha: 0.4
3036
            },
3037
 
3038
 
3039
            backgroundZoomsToTop: true,
3040
            linesAboveImages: true
3041
        });
3042
 
3043
        $('#chart_11').closest('.portlet').find('.fullscreen').click(function() {
3044
            map.invalidateSize();
3045
        });
3046
    }
3047
 
3048
    var initChartSample12 = function() {
3049
        var chartData = [];
3050
        generateChartData();
3051
 
3052
        function generateChartData() {
3053
            var firstDate = new Date(2012, 0, 1);
3054
            firstDate.setDate(firstDate.getDate() - 500);
3055
            firstDate.setHours(0, 0, 0, 0);
3056
 
3057
            for (var i = 0; i < 500; i++) {
3058
                var newDate = new Date(firstDate);
3059
                newDate.setDate(newDate.getDate() + i);
3060
 
3061
                var a = Math.round(Math.random() * (40 + i)) + 100 + i;
3062
                var b = Math.round(Math.random() * 100000000);
3063
 
3064
                chartData.push({
3065
                    date: newDate,
3066
                    value: a,
3067
                    volume: b
3068
                });
3069
            }
3070
        }
3071
 
3072
        var chart = AmCharts.makeChart("chart_12", {
3073
            type: "stock",
3074
            "theme": "light",
3075
            pathToImages: Metronic.getGlobalPluginsPath() + "amcharts/amcharts/images/",
3076
            "fontFamily": 'Open Sans',
3077
 
3078
            "color":    '#888',
3079
            dataSets: [{
3080
                color: "#b0de09",
3081
                fieldMappings: [{
3082
                    fromField: "value",
3083
                    toField: "value"
3084
                }, {
3085
                    fromField: "volume",
3086
                    toField: "volume"
3087
                }],
3088
                dataProvider: chartData,
3089
                categoryField: "date",
3090
                // EVENTS
3091
                stockEvents: [{
3092
                    date: new Date(2010, 8, 19),
3093
                    type: "sign",
3094
                    backgroundColor: "#85CDE6",
3095
                    graph: "g1",
3096
                    text: "S",
3097
                    description: "This is description of an event"
3098
                }, {
3099
                    date: new Date(2010, 10, 19),
3100
                    type: "flag",
3101
                    backgroundColor: "#FFFFFF",
3102
                    backgroundAlpha: 0.5,
3103
                    graph: "g1",
3104
                    text: "F",
3105
                    description: "Some longerntext can alson be added"
3106
                }, {
3107
                    date: new Date(2010, 11, 10),
3108
                    showOnAxis: true,
3109
                    backgroundColor: "#85CDE6",
3110
                    type: "pin",
3111
                    text: "X",
3112
                    graph: "g1",
3113
                    description: "This is description of an event"
3114
                }, {
3115
                    date: new Date(2010, 11, 26),
3116
                    showOnAxis: true,
3117
                    backgroundColor: "#85CDE6",
3118
                    type: "pin",
3119
                    text: "Z",
3120
                    graph: "g1",
3121
                    description: "This is description of an event"
3122
                }, {
3123
                    date: new Date(2011, 0, 3),
3124
                    type: "sign",
3125
                    backgroundColor: "#85CDE6",
3126
                    graph: "g1",
3127
                    text: "U",
3128
                    description: "This is description of an event"
3129
                }, {
3130
                    date: new Date(2011, 1, 6),
3131
                    type: "sign",
3132
                    graph: "g1",
3133
                    text: "D",
3134
                    description: "This is description of an event"
3135
                }, {
3136
                    date: new Date(2011, 3, 5),
3137
                    type: "sign",
3138
                    graph: "g1",
3139
                    text: "L",
3140
                    description: "This is description of an event"
3141
                }, {
3142
                    date: new Date(2011, 3, 5),
3143
                    type: "sign",
3144
                    graph: "g1",
3145
                    text: "R",
3146
                    description: "This is description of an event"
3147
                }, {
3148
                    date: new Date(2011, 5, 15),
3149
                    type: "arrowUp",
3150
                    backgroundColor: "#00CC00",
3151
                    graph: "g1",
3152
                    description: "This is description of an event"
3153
                }, {
3154
                    date: new Date(2011, 6, 25),
3155
                    type: "arrowDown",
3156
                    backgroundColor: "#CC0000",
3157
                    graph: "g1",
3158
                    description: "This is description of an event"
3159
                }, {
3160
                    date: new Date(2011, 8, 1),
3161
                    type: "text",
3162
                    graph: "g1",
3163
                    text: "Longer text can\nalso be displayed",
3164
                    description: "This is description of an event"
3165
                }]
3166
            }],
3167
 
3168
 
3169
            panels: [{
3170
                title: "Value",
3171
                percentHeight: 70,
3172
 
3173
                stockGraphs: [{
3174
                    id: "g1",
3175
                    valueField: "value"
3176
                }],
3177
 
3178
                stockLegend: {
3179
                    valueTextRegular: " ",
3180
                    markerType: "none"
3181
                }
3182
            }],
3183
 
3184
            chartScrollbarSettings: {
3185
                graph: "g1"
3186
            },
3187
 
3188
            chartCursorSettings: {
3189
                valueBalloonsEnabled: true,
3190
                graphBulletSize: 1,
3191
                valueLineBalloonEnabled:true,
3192
                valueLineEnabled:true,
3193
                valueLineAlpha:0.5
3194
            },
3195
 
3196
            periodSelector: {
3197
                periods: [{
3198
                    period: "DD",
3199
                    count: 10,
3200
                    label: "10 days"
3201
                }, {
3202
                    period: "MM",
3203
                    count: 1,
3204
                    label: "1 month"
3205
                }, {
3206
                    period: "YYYY",
3207
                    count: 1,
3208
                    label: "1 year"
3209
                }, {
3210
                    period: "YTD",
3211
                    label: "YTD"
3212
                }, {
3213
                    period: "MAX",
3214
                    label: "MAX"
3215
                }]
3216
            },
3217
 
3218
            panelsSettings: {
3219
                usePrefixes: true
3220
            }
3221
        });
3222
 
3223
        $('#chart_12').closest('.portlet').find('.fullscreen').click(function() {
3224
            chart.invalidateSize();
3225
        });
3226
    }
3227
 
3228
    return {
3229
        //main function to initiate the module
3230
 
3231
        init: function() {
3232
 
3233
            initChartSample1();
3234
            initChartSample2();
3235
            initChartSample3();
3236
            initChartSample4();
3237
            initChartSample5();
3238
            initChartSample6();
3239
            initChartSample7();
3240
            initChartSample8();
3241
            initChartSample9();
3242
            initChartSample10();
3243
            initChartSample11();
3244
            initChartSample12();
3245
        }
3246
 
3247
    };
3248
 
3249
}();