This portal only for GCC Officers. Based on there roles and Group ID they can view there module`s Like PGR, QR Public Asset Feedback, Makkalai Thedi Mayor,etc...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

692 lines
18 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. "use strict";
  2. $(document).ready(function() {
  3. var chart = AmCharts.makeChart("3D_pie_chart", {
  4. "type": "pie",
  5. "theme": "none",
  6. "dataProvider": [{
  7. "country": "Lithuania",
  8. "value": 260
  9. }, {
  10. "country": "Ireland",
  11. "value": 201
  12. }, {
  13. "country": "Germany",
  14. "value": 65
  15. }, {
  16. "country": "Australia",
  17. "value": 39
  18. }, {
  19. "country": "UK",
  20. "value": 19
  21. }, {
  22. "country": "Latvia",
  23. "value": 10
  24. }],
  25. "valueField": "value",
  26. "titleField": "country",
  27. "outlineAlpha": 0.4,
  28. "depth3D": 15,
  29. "balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>",
  30. "angle": 30,
  31. "export": {
  32. "enabled": true
  33. }
  34. });
  35. var chart = AmCharts.makeChart("bar_chart", {
  36. "type": "serial",
  37. "theme": "light",
  38. "dataDateFormat": "YYYY-MM-DD",
  39. "precision": 2,
  40. "valueAxes": [{
  41. "id": "v1",
  42. "fontSize": 0,
  43. "axisAlpha": 0,
  44. "lineAlpha": 0,
  45. "gridAlpha": 0,
  46. "position": "left",
  47. "autoGridCount": false,
  48. "labelFunction": function(value) {
  49. return "$" + Math.round(value) + "M";
  50. }
  51. }],
  52. "graphs": [{
  53. "id": "g3",
  54. "valueAxis": "v1",
  55. "lineColor": "#2ed8b6",
  56. "fillColors": "#2ed8b6",
  57. "fillAlphas": 0.3,
  58. "type": "column",
  59. "title": "Actual Sales",
  60. "valueField": "sales2",
  61. "columnWidth": 0.5,
  62. "legendValueText": "$[[value]]M",
  63. "balloonText": "[[title]]<br /><b style='font-size: 130%'>$[[value]]M</b>"
  64. }, {
  65. "id": "g4",
  66. "valueAxis": "v1",
  67. "lineColor": "#2ed8b6",
  68. "fillColors": "#2ed8b6",
  69. "fillAlphas": 1,
  70. "type": "column",
  71. "title": "Target Sales",
  72. "valueField": "sales1",
  73. "columnWidth": 0.5,
  74. "legendValueText": "$[[value]]M",
  75. "balloonText": "[[title]]<br /><b style='font-size: 130%'>$[[value]]M</b>"
  76. }],
  77. "chartCursor": {
  78. "pan": true,
  79. "valueLineEnabled": true,
  80. "valueLineBalloonEnabled": true,
  81. "cursorAlpha": 0,
  82. "valueLineAlpha": 0.2
  83. },
  84. "categoryField": "date",
  85. "categoryAxis": {
  86. "parseDates": true,
  87. "axisAlpha": 0,
  88. "lineAlpha": 0,
  89. "gridAlpha": 0,
  90. "minorGridEnabled": true,
  91. },
  92. "balloon": {
  93. "borderThickness": 1,
  94. "shadowAlpha": 0
  95. },
  96. "export": {
  97. "enabled": true
  98. },
  99. "dataProvider": [{
  100. "date": "2013-01-16",
  101. "sales1": 5,
  102. "sales2": 8
  103. }, {
  104. "date": "2013-01-17",
  105. "sales1": 4,
  106. "sales2": 6
  107. }, {
  108. "date": "2013-01-18",
  109. "sales1": 5,
  110. "sales2": 2
  111. }, {
  112. "date": "2013-01-19",
  113. "sales1": 8,
  114. "sales2": 9
  115. }, {
  116. "date": "2013-01-20",
  117. "sales1": 9,
  118. "sales2": 6
  119. }]
  120. });
  121. var chart = AmCharts.makeChart("smoothed_line_chart", {
  122. "type": "serial",
  123. "theme": "none",
  124. "marginTop": 0,
  125. "marginRight": 80,
  126. "dataProvider": [{
  127. "year": "1950",
  128. "value": -0.307
  129. }, {
  130. "year": "1951",
  131. "value": -0.168
  132. }, {
  133. "year": "1952",
  134. "value": -0.073
  135. }, {
  136. "year": "1953",
  137. "value": -0.027
  138. }, {
  139. "year": "1954",
  140. "value": -0.251
  141. }, {
  142. "year": "1955",
  143. "value": -0.281
  144. }, {
  145. "year": "1956",
  146. "value": -0.348
  147. }, {
  148. "year": "1957",
  149. "value": -0.074
  150. }, {
  151. "year": "1958",
  152. "value": -0.011
  153. }, {
  154. "year": "1959",
  155. "value": -0.074
  156. }, {
  157. "year": "1960",
  158. "value": -0.124
  159. }, {
  160. "year": "1961",
  161. "value": -0.024
  162. }, {
  163. "year": "1962",
  164. "value": -0.022
  165. }, {
  166. "year": "1963",
  167. "value": 0
  168. }, {
  169. "year": "1964",
  170. "value": -0.296
  171. }, {
  172. "year": "1965",
  173. "value": -0.217
  174. }, {
  175. "year": "1966",
  176. "value": -0.147
  177. }, {
  178. "year": "1967",
  179. "value": -0.15
  180. }, {
  181. "year": "1968",
  182. "value": -0.16
  183. }, {
  184. "year": "1969",
  185. "value": -0.011
  186. }, {
  187. "year": "1970",
  188. "value": -0.068
  189. }, {
  190. "year": "1971",
  191. "value": -0.19
  192. }, {
  193. "year": "1972",
  194. "value": -0.056
  195. }, {
  196. "year": "1973",
  197. "value": 0.077
  198. }, {
  199. "year": "1974",
  200. "value": -0.213
  201. }, {
  202. "year": "1975",
  203. "value": -0.17
  204. }, {
  205. "year": "1976",
  206. "value": -0.254
  207. }, {
  208. "year": "1977",
  209. "value": 0.019
  210. }, {
  211. "year": "1978",
  212. "value": -0.063
  213. }, {
  214. "year": "1979",
  215. "value": 0.05
  216. }, {
  217. "year": "1980",
  218. "value": 0.077
  219. }, {
  220. "year": "1981",
  221. "value": 0.12
  222. }, {
  223. "year": "1982",
  224. "value": 0.011
  225. }, {
  226. "year": "1983",
  227. "value": 0.177
  228. }, {
  229. "year": "1984",
  230. "value": -0.021
  231. }, {
  232. "year": "1985",
  233. "value": -0.037
  234. }, {
  235. "year": "1986",
  236. "value": 0.03
  237. }, {
  238. "year": "1987",
  239. "value": 0.179
  240. }, {
  241. "year": "1988",
  242. "value": 0.18
  243. }, {
  244. "year": "1989",
  245. "value": 0.104
  246. }, {
  247. "year": "1990",
  248. "value": 0.255
  249. }, {
  250. "year": "1991",
  251. "value": 0.21
  252. }, {
  253. "year": "1992",
  254. "value": 0.065
  255. }, {
  256. "year": "1993",
  257. "value": 0.11
  258. }, {
  259. "year": "1994",
  260. "value": 0.172
  261. }, {
  262. "year": "1995",
  263. "value": 0.269
  264. }, {
  265. "year": "1996",
  266. "value": 0.141
  267. }, {
  268. "year": "1997",
  269. "value": 0.353
  270. }, {
  271. "year": "1998",
  272. "value": 0.548
  273. }, {
  274. "year": "1999",
  275. "value": 0.298
  276. }, {
  277. "year": "2000",
  278. "value": 0.267
  279. }, {
  280. "year": "2001",
  281. "value": 0.411
  282. }, {
  283. "year": "2002",
  284. "value": 0.462
  285. }, {
  286. "year": "2003",
  287. "value": 0.47
  288. }, {
  289. "year": "2004",
  290. "value": 0.445
  291. }, {
  292. "year": "2005",
  293. "value": 0.47
  294. }],
  295. "valueAxes": [{
  296. "axisAlpha": 0,
  297. "position": "left"
  298. }],
  299. "graphs": [{
  300. "id": "g1",
  301. "balloonText": "[[category]]<br><b><span style='font-size:14px;'>[[value]]</span></b>",
  302. "bullet": "round",
  303. "bulletSize": 8,
  304. "lineColor": "#d1655d",
  305. "lineThickness": 2,
  306. "negativeLineColor": "#637bb6",
  307. "type": "smoothedLine",
  308. "valueField": "value"
  309. }],
  310. "chartScrollbar": {
  311. "graph": "g1",
  312. "gridAlpha": 0,
  313. "color": "#888888",
  314. "scrollbarHeight": 55,
  315. "backgroundAlpha": 0,
  316. "selectedBackgroundAlpha": 0.1,
  317. "selectedBackgroundColor": "#888888",
  318. "graphFillAlpha": 0,
  319. "autoGridCount": true,
  320. "selectedGraphFillAlpha": 0,
  321. "graphLineAlpha": 0.2,
  322. "graphLineColor": "#c2c2c2",
  323. "selectedGraphLineColor": "#888888",
  324. "selectedGraphLineAlpha": 1
  325. },
  326. "chartCursor": {
  327. "categoryBalloonDateFormat": "YYYY",
  328. "cursorAlpha": 0,
  329. "valueLineEnabled": true,
  330. "valueLineBalloonEnabled": true,
  331. "valueLineAlpha": 0.5,
  332. "fullWidth": true
  333. },
  334. "dataDateFormat": "YYYY",
  335. "categoryField": "year",
  336. "categoryAxis": {
  337. "minPeriod": "YYYY",
  338. "parseDates": true,
  339. "minorGridAlpha": 0.1,
  340. "minorGridEnabled": true
  341. },
  342. "export": {
  343. "enabled": true
  344. }
  345. });
  346. var gaugeChart = AmCharts.makeChart("angular_guage", {
  347. "type": "gauge",
  348. "theme": "none",
  349. "axes": [{
  350. "axisThickness": 1,
  351. "axisAlpha": 0.2,
  352. "tickAlpha": 0.2,
  353. "valueInterval": 20,
  354. "bands": [{
  355. "color": "#84b761",
  356. "endValue": 90,
  357. "startValue": 0
  358. }, {
  359. "color": "#fdd400",
  360. "endValue": 130,
  361. "startValue": 90
  362. }, {
  363. "color": "#cc4748",
  364. "endValue": 220,
  365. "innerRadius": "95%",
  366. "startValue": 130
  367. }],
  368. "bottomText": "0 km/h",
  369. "bottomTextYOffset": -20,
  370. "endValue": 220
  371. }],
  372. "arrows": [{}],
  373. "export": {
  374. "enabled": true
  375. }
  376. });
  377. setInterval(randomValue, 2000);
  378. // set random value
  379. function randomValue() {
  380. var value = Math.round(Math.random() * 200);
  381. if (gaugeChart) {
  382. if (gaugeChart.arrows) {
  383. if (gaugeChart.arrows[0]) {
  384. if (gaugeChart.arrows[0].setValue) {
  385. gaugeChart.arrows[0].setValue(value);
  386. gaugeChart.axes[0].setBottomText(value + " km/h");
  387. }
  388. }
  389. }
  390. }
  391. }
  392. var chart = AmCharts.makeChart("line_chart", {
  393. "type": "serial",
  394. "theme": "light",
  395. "dataDateFormat": "YYYY-MM-DD",
  396. "precision": 2,
  397. "valueAxes": [{
  398. "id": "v1",
  399. "position": "left",
  400. "autoGridCount": false,
  401. "labelFunction": function(value) {
  402. return "$" + Math.round(value) + "M";
  403. }
  404. }, {
  405. "id": "v2",
  406. "gridAlpha": 0,
  407. "autoGridCount": false
  408. }],
  409. "graphs": [{
  410. "id": "g1",
  411. "valueAxis": "v2",
  412. "bullet": "round",
  413. "bulletBorderAlpha": 1,
  414. "bulletColor": "#FFFFFF",
  415. "bulletSize": 8,
  416. "hideBulletsCount": 50,
  417. "lineThickness": 3,
  418. "lineColor": "#2ed8b6",
  419. "title": "Market Days",
  420. "useLineColorForBulletBorder": true,
  421. "valueField": "market1",
  422. "balloonText": "[[title]]<br /><b style='font-size: 130%'>[[value]]</b>"
  423. }, {
  424. "id": "g2",
  425. "valueAxis": "v2",
  426. "bullet": "round",
  427. "bulletBorderAlpha": 1,
  428. "bulletColor": "#FFFFFF",
  429. "bulletSize": 8,
  430. "hideBulletsCount": 50,
  431. "lineThickness": 3,
  432. "lineColor": "#e95753",
  433. "title": "Market Days ALL",
  434. "useLineColorForBulletBorder": true,
  435. "valueField": "market2",
  436. "balloonText": "[[title]]<br /><b style='font-size: 130%'>[[value]]</b>"
  437. }],
  438. "chartCursor": {
  439. "pan": true,
  440. "valueLineEnabled": true,
  441. "valueLineBalloonEnabled": true,
  442. "cursorAlpha": 0,
  443. "valueLineAlpha": 0.2
  444. },
  445. "categoryField": "date",
  446. "categoryAxis": {
  447. "parseDates": true,
  448. "dashLength": 1,
  449. "minorGridEnabled": true
  450. },
  451. "legend": {
  452. "useGraphSettings": true,
  453. "position": "top"
  454. },
  455. "balloon": {
  456. "borderThickness": 1,
  457. "shadowAlpha": 0
  458. },
  459. "dataProvider": [{
  460. "date": "2013-01-16",
  461. "market1": 71,
  462. "market2": 75
  463. }, {
  464. "date": "2013-01-17",
  465. "market1": 80,
  466. "market2": 84
  467. }, {
  468. "date": "2013-01-18",
  469. "market1": 78,
  470. "market2": 83
  471. }, {
  472. "date": "2013-01-19",
  473. "market1": 85,
  474. "market2": 88
  475. }, {
  476. "date": "2013-01-20",
  477. "market1": 87,
  478. "market2": 85
  479. }, {
  480. "date": "2013-01-21",
  481. "market1": 97,
  482. "market2": 88
  483. }, {
  484. "date": "2013-01-22",
  485. "market1": 93,
  486. "market2": 88
  487. }, {
  488. "date": "2013-01-23",
  489. "market1": 85,
  490. "market2": 80
  491. }, {
  492. "date": "2013-01-24",
  493. "market1": 90,
  494. "market2": 85
  495. }]
  496. });
  497. var map = AmCharts.makeChart("allocation-map", {
  498. "type": "map",
  499. "theme": "light",
  500. "colorSteps": 10,
  501. "dataProvider": {
  502. "map": "usaLow",
  503. "areas": [{
  504. "id": "US-AL",
  505. "value": 4447100
  506. }, {
  507. "id": "US-AK",
  508. "value": 626932
  509. }, {
  510. "id": "US-AZ",
  511. "value": 5130632
  512. }, {
  513. "id": "US-AR",
  514. "value": 2673400
  515. }, {
  516. "id": "US-CA",
  517. "value": 33871648
  518. }, {
  519. "id": "US-CO",
  520. "value": 4301261
  521. }, {
  522. "id": "US-CT",
  523. "value": 3405565
  524. }, {
  525. "id": "US-DE",
  526. "value": 783600
  527. }, {
  528. "id": "US-FL",
  529. "value": 15982378
  530. }, {
  531. "id": "US-GA",
  532. "value": 8186453
  533. }, {
  534. "id": "US-HI",
  535. "value": 1211537
  536. }, {
  537. "id": "US-ID",
  538. "value": 1293953
  539. }, {
  540. "id": "US-IL",
  541. "value": 12419293
  542. }, {
  543. "id": "US-IN",
  544. "value": 6080485
  545. }, {
  546. "id": "US-IA",
  547. "value": 2926324
  548. }, {
  549. "id": "US-KS",
  550. "value": 2688418
  551. }, {
  552. "id": "US-KY",
  553. "value": 4041769
  554. }, {
  555. "id": "US-LA",
  556. "value": 4468976
  557. }, {
  558. "id": "US-ME",
  559. "value": 1274923
  560. }, {
  561. "id": "US-MD",
  562. "value": 5296486
  563. }, {
  564. "id": "US-MA",
  565. "value": 6349097
  566. }, {
  567. "id": "US-MI",
  568. "value": 9938444
  569. }, {
  570. "id": "US-MN",
  571. "value": 4919479
  572. }, {
  573. "id": "US-MS",
  574. "value": 2844658
  575. }, {
  576. "id": "US-MO",
  577. "value": 5595211
  578. }, {
  579. "id": "US-MT",
  580. "value": 902195
  581. }, {
  582. "id": "US-NE",
  583. "value": 1711263
  584. }, {
  585. "id": "US-NV",
  586. "value": 1998257
  587. }, {
  588. "id": "US-NH",
  589. "value": 1235786
  590. }, {
  591. "id": "US-NJ",
  592. "value": 8414350
  593. }, {
  594. "id": "US-NM",
  595. "value": 1819046
  596. }, {
  597. "id": "US-NY",
  598. "value": 18976457
  599. }, {
  600. "id": "US-NC",
  601. "value": 8049313
  602. }, {
  603. "id": "US-ND",
  604. "value": 642200
  605. }, {
  606. "id": "US-OH",
  607. "value": 11353140
  608. }, {
  609. "id": "US-OK",
  610. "value": 3450654
  611. }, {
  612. "id": "US-OR",
  613. "value": 3421399
  614. }, {
  615. "id": "US-PA",
  616. "value": 12281054
  617. }, {
  618. "id": "US-RI",
  619. "value": 1048319
  620. }, {
  621. "id": "US-SC",
  622. "value": 4012012
  623. }, {
  624. "id": "US-SD",
  625. "value": 754844
  626. }, {
  627. "id": "US-TN",
  628. "value": 5689283
  629. }, {
  630. "id": "US-TX",
  631. "value": 20851820
  632. }, {
  633. "id": "US-UT",
  634. "value": 2233169
  635. }, {
  636. "id": "US-VT",
  637. "value": 608827
  638. }, {
  639. "id": "US-VA",
  640. "value": 7078515
  641. }, {
  642. "id": "US-WA",
  643. "value": 5894121
  644. }, {
  645. "id": "US-WV",
  646. "value": 1808344
  647. }, {
  648. "id": "US-WI",
  649. "value": 5363675
  650. }, {
  651. "id": "US-WY",
  652. "value": 493782
  653. }]
  654. },
  655. "areasSettings": {
  656. "autoZoom": true
  657. },
  658. "export": {
  659. "enabled": true
  660. }
  661. });
  662. var chart = AmCharts.makeChart("allocation-chart", {
  663. "type": "pie",
  664. "startDuration": 0,
  665. "theme": "light",
  666. "labelRadius": 0,
  667. "pullOutRadius": 0,
  668. "labelText": "",
  669. "colorField": "color",
  670. "legend": {
  671. // "enabled":false,
  672. },
  673. "innerRadius": "70%",
  674. "dataProvider": [{
  675. "country": "Lithuania",
  676. "litres": 501.9,
  677. "color": "#85C5E3"
  678. }, {
  679. "country": "Czech Republic",
  680. "litres": 301.9,
  681. "color": "#6AA3C4"
  682. }, {
  683. "country": "Ireland",
  684. "litres": 201.1,
  685. "color": "#6097B9"
  686. }, {
  687. "country": "india",
  688. "litres": 220.1,
  689. "color": "#4E81A4"
  690. }],
  691. "valueField": "litres",
  692. });
  693. });