// JavaScript Document
var map = AmCharts.makeChart( "chartdiv", {
"type": "map",
"theme": "light",
"colorSteps": 1,
"dataProvider": {
"map": "usaLow",
"areas": [
{"id":"US-AB", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AB
Active Projects : 4493
Last 24 Hours : 26
Top 3 Scope Tags : Public Buildings & Facilities 4913
Roads 3769
Water/Wastewater 3504
" },
{"id":"US-AK", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AK
Active Projects : 3187
Last 24 Hours : 31
Top 3 Scope Tags : Public Buildings & Facilities 4541
Roads 3660
Water/Wastewater 2020
" },
{"id":"US-AL", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AL
Active Projects : 2252
Last 24 Hours : 33
Top 3 Scope Tags : Public Buildings & Facilities 10856
Roads 8625
Water/Wastewater 5821
" },
{"id":"US-AR", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AR
Active Projects : 3195
Last 24 Hours : 8
Top 3 Scope Tags : Roads 5852
Public Buildings & Facilities 5232
Water/Wastewater 3313
" },
{"id":"US-AZ", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AZ
Active Projects : 3566
Last 24 Hours : 32
Top 3 Scope Tags : Public Buildings & Facilities 7176
Roads 4236
Water/Wastewater 3877
" },
{"id":"US-BC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "BC
Active Projects : 2082
Last 24 Hours : 105
Top 3 Scope Tags : Public Buildings & Facilities 6803
Water/Wastewater 5333
Roads 4641
" },
{"id":"US-CA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "CA
Active Projects : 44756
Last 24 Hours : 401
Top 3 Scope Tags : Public Buildings & Facilities 51823
Roads 33348
Water/Wastewater 32111
" },
{"id":"US-CO", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "CO
Active Projects : 3026
Last 24 Hours : 68
Top 3 Scope Tags : Public Buildings & Facilities 12565
Roads 9208
Water/Wastewater 6644
" },
{"id":"US-CT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "CT
Active Projects : 4006
Last 24 Hours : 77
Top 3 Scope Tags : Public Buildings & Facilities 8408
Roads 6068
WBT 3854
", "callout": false },
{"id":"US-DC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "DC
Active Projects : 396
Last 24 Hours : 15
Top 3 Scope Tags : Public Buildings & Facilities 4647
Water/Wastewater 1488
WBT 1330
", "callout": false },
{"id":"US-DE", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "DE
Active Projects : 2410
Last 24 Hours : 3
Top 3 Scope Tags : Public Buildings & Facilities 1436
Roads 925
WBT 922
", "callout": false },
{"id":"US-FL", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "FL
Active Projects : 41654
Last 24 Hours : 242
Top 3 Scope Tags : Public Buildings & Facilities 31531
Roads 22404
Water/Wastewater 21074
" },
{"id":"US-GA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "GA
Active Projects : 7981
Last 24 Hours : 85
Top 3 Scope Tags : Public Buildings & Facilities 13768
Roads 11688
Water/Wastewater 8129
" },
{"id":"US-HI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "HI
Active Projects : 4347
Last 24 Hours : 52
Top 3 Scope Tags : Public Buildings & Facilities 4843
Water/Wastewater 2900
WBT 2699
", "callout": false },
{"id":"US-IA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "IA
Active Projects : 5031
Last 24 Hours : 25
Top 3 Scope Tags : Roads 6789
Public Buildings & Facilities 6456
Water/Wastewater 3709
" },
{"id":"US-ID", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ID
Active Projects : 2369
Last 24 Hours : 25
Top 3 Scope Tags : Roads 3702
Public Buildings & Facilities 3155
Water/Wastewater 1953
" },
{"id":"US-IL", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "IL
Active Projects : 19792
Last 24 Hours : 227
Top 3 Scope Tags : Roads 25070
Public Buildings & Facilities 23033
Water/Wastewater 15061
" },
{"id":"US-IN", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "IN
Active Projects : 9755
Last 24 Hours : 45
Top 3 Scope Tags : Roads 10239
Public Buildings & Facilities 7374
WBT 4980
" },
{"id":"US-KS", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "KS
Active Projects : 5151
Last 24 Hours : 38
Top 3 Scope Tags : Roads 6466
Public Buildings & Facilities 5388
Water/Wastewater 3428
" },
{"id":"US-KY", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "KY
Active Projects : 5120
Last 24 Hours : 45
Top 3 Scope Tags : Public Buildings & Facilities 7475
Roads 7470
WBT 4341
" },
{"id":"US-LA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "LA
Active Projects : 4594
Last 24 Hours : 64
Top 3 Scope Tags : Public Buildings & Facilities 12740
Roads 11008
Water/Wastewater 7282
" },
{"id":"US-MA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MA
Active Projects : 7582
Last 24 Hours : 38
Top 3 Scope Tags : Public Buildings & Facilities 28529
Roads 16845
WBT 16128
", "callout": false },
{"id":"US-MB", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MB
Active Projects : 1552
Last 24 Hours : 11
Top 3 Scope Tags : Public Buildings & Facilities 1451
Water/Wastewater 1333
Roads 1228
" },
{"id":"US-MD", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MD
Active Projects : 5529
Last 24 Hours : 116
Top 3 Scope Tags : Public Buildings & Facilities 11296
Water/Wastewater 5837
WBT 5446
", "callout": false },
{"id":"US-ME", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ME
Active Projects : 3019
Last 24 Hours : 35
Top 3 Scope Tags : Public Buildings & Facilities 3696
Roads 3319
Water/Wastewater 1824
" },
{"id":"US-MI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MI
Active Projects : 10377
Last 24 Hours : 61
Top 3 Scope Tags : Roads 23780
Public Buildings & Facilities 16149
WBT 8547
" },
{"id":"US-MN", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MN
Active Projects : 7194
Last 24 Hours : 90
Top 3 Scope Tags : Roads 11960
Public Buildings & Facilities 8439
Water/Wastewater 7342
" },
{"id":"US-MO", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MO
Active Projects : 7482
Last 24 Hours : 70
Top 3 Scope Tags : Public Buildings & Facilities 13307
Roads 12447
Water/Wastewater 6797
" },
{"id":"US-MS", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MS
Active Projects : 1255
Last 24 Hours : 82
Top 3 Scope Tags : Public Buildings & Facilities 6594
Roads 5760
Water/Wastewater 4089
" },
{"id":"US-MT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MT
Active Projects : 1514
Last 24 Hours : 26
Top 3 Scope Tags : Public Buildings & Facilities 3522
Roads 3304
Water/Wastewater 2280
" },
{"id":"US-N/A", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "N/A
Active Projects : 309
Last 24 Hours : 16
Top 3 Scope Tags : Public Buildings & Facilities 908
Water/Wastewater 590
WBT 537
" },
{"id":"US-NB", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NB
Active Projects : 171
Last 24 Hours : 21
Top 3 Scope Tags : Public Buildings & Facilities 1501
Roads 1299
Water/Wastewater 1023
" },
{"id":"US-NC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NC
Active Projects : 5569
Last 24 Hours : 407
Top 3 Scope Tags : Roads 25658
Public Buildings & Facilities 17745
Structural Engineering 13876
" },
{"id":"US-ND", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ND
Active Projects : 2323
Last 24 Hours : 9
Top 3 Scope Tags : Roads 4276
Public Buildings & Facilities 2740
Water/Wastewater 2034
" },
{"id":"US-NE", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NE
Active Projects : 3247
Last 24 Hours : 124
Top 3 Scope Tags : Public Buildings & Facilities 4490
Roads 4312
Water/Wastewater 2486
" },
{"id":"US-NH", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NH
Active Projects : 1129
Last 24 Hours : 32
Top 3 Scope Tags : Roads 2877
Public Buildings & Facilities 2452
Water/Wastewater 1498
" },
{"id":"US-NJ", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NJ
Active Projects : 6633
Last 24 Hours : 74
Top 3 Scope Tags : Public Buildings & Facilities 16558
Roads 12889
WBT 10634
", "callout": false },
{"id":"US-NL", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NL
Active Projects : 86
Last 24 Hours :
Top 3 Scope Tags : WBT 57
Water/Wastewater 40
Roads 26
" },
{"id":"US-NM", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NM
Active Projects : 1473
Last 24 Hours : 8
Top 3 Scope Tags : Public Buildings & Facilities 4688
Water/Wastewater 2462
Roads 2324
" },
{"id":"US-NS", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NS
Active Projects : 881
Last 24 Hours : 16
Top 3 Scope Tags : Roads 2638
Public Buildings & Facilities 2233
Water/Wastewater 1579
" },
{"id":"US-NT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NT
Active Projects : 330
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 452
Water/Wastewater 264
WBT 237
" },
{"id":"US-NU", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NU
Active Projects : 21
Last 24 Hours : 16
Top 3 Scope Tags : Public Buildings & Facilities 334
Water/Wastewater 151
Roads 147
" },
{"id":"US-NV", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NV
Active Projects : 3998
Last 24 Hours : 35
Top 3 Scope Tags : Public Buildings & Facilities 3407
Roads 2536
Water/Wastewater 1971
" },
{"id":"US-NY", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NY
Active Projects : 8196
Last 24 Hours : 208
Top 3 Scope Tags : Public Buildings & Facilities 32499
Water/Wastewater 17305
WBT 16721
" },
{"id":"US-OH", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "OH
Active Projects : 19250
Last 24 Hours : 163
Top 3 Scope Tags : Roads 22562
Public Buildings & Facilities 18547
Water/Wastewater 18062
" },
{"id":"US-OK", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "OK
Active Projects : 5051
Last 24 Hours : 61
Top 3 Scope Tags : Public Buildings & Facilities 9058
Roads 7759
WBT 5045
" },
{"id":"US-ON", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ON
Active Projects : 16528
Last 24 Hours : 129
Top 3 Scope Tags : Public Buildings & Facilities 14798
Water/Wastewater 11809
Roads 11004
" },
{"id":"US-OR", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "OR
Active Projects : 5261
Last 24 Hours : 52
Top 3 Scope Tags : Public Buildings & Facilities 7945
Roads 6792
Water/Wastewater 5533
" },
{"id":"US-PA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "PA
Active Projects : 28239
Last 24 Hours : 202
Top 3 Scope Tags : Roads 32631
Public Buildings & Facilities 25827
Water/Wastewater 16010
" },
{"id":"US-PE", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "PE
Active Projects : 37
Last 24 Hours :
Top 3 Scope Tags : Roads 406
Public Buildings & Facilities 390
Water/Wastewater 246
" },
{"id":"US-PR", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "PR
Active Projects : 47
Last 24 Hours : 18
Top 3 Scope Tags : Public Buildings & Facilities 530
Water/Wastewater 162
Military 142
" },
{"id":"US-QC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "QC
Active Projects : 89
Last 24 Hours : 110
Top 3 Scope Tags : Public Buildings & Facilities 10734
Roads 8037
Water/Wastewater 5792
" },
{"id":"US-RI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "RI
Active Projects : 718
Last 24 Hours : 62
Top 3 Scope Tags : Public Buildings & Facilities 2826
Water/Wastewater 1539
WBT 1524
", "callout": false },
{"id":"US-SC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "SC
Active Projects : 4214
Last 24 Hours : 89
Top 3 Scope Tags : Roads 15503
Public Buildings & Facilities 9771
WBT 5359
" },
{"id":"US-SD", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "SD
Active Projects : 1846
Last 24 Hours : 16
Top 3 Scope Tags : Roads 3731
Public Buildings & Facilities 3139
Water/Wastewater 2110
" },
{"id":"US-SK", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "SK
Active Projects : 346
Last 24 Hours : 13
Top 3 Scope Tags : Public Buildings & Facilities 2069
Roads 1927
Water/Wastewater 1594
" },
{"id":"US-TN", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "TN
Active Projects : 4847
Last 24 Hours : 47
Top 3 Scope Tags : Public Buildings & Facilities 11256
Roads 7789
Water/Wastewater 5760
" },
{"id":"US-TX", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "TX
Active Projects : 48744
Last 24 Hours : 306
Top 3 Scope Tags : Roads 41905
Public Buildings & Facilities 37629
Water/Wastewater 30235
" },
{"id":"US-UT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "UT
Active Projects : 1796
Last 24 Hours : 26
Top 3 Scope Tags : Public Buildings & Facilities 6820
Roads 4211
Water/Wastewater 3923
" },
{"id":"US-VA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "VA
Active Projects : 14545
Last 24 Hours : 111
Top 3 Scope Tags : Public Buildings & Facilities 16823
Water/Wastewater 10843
WBT 10332
" },
{"id":"US-VT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "VT
Active Projects : 1242
Last 24 Hours : 9
Top 3 Scope Tags : Roads 1995
Public Buildings & Facilities 1575
Water/Wastewater 1025
" },
{"id":"US-WA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WA
Active Projects : 9628
Last 24 Hours : 152
Top 3 Scope Tags : Public Buildings & Facilities 14352
Roads 13036
Water/Wastewater 10324
" },
{"id":"US-WI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WI
Active Projects : 14874
Last 24 Hours : 41
Top 3 Scope Tags : Roads 12654
Public Buildings & Facilities 10239
Water/Wastewater 8337
" },
{"id":"US-WV", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WV
Active Projects : 1429
Last 24 Hours : 21
Top 3 Scope Tags : Public Buildings & Facilities 3313
Roads 2382
Water/Wastewater 1669
" },
{"id":"US-WY", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WY
Active Projects : 1272
Last 24 Hours : 12
Top 3 Scope Tags : Roads 3999
Public Buildings & Facilities 3669
WBT 1630
" },
{"id":"US-YT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "YT
Active Projects : 229
Last 24 Hours : 4
Top 3 Scope Tags : Public Buildings & Facilities 229
Water/Wastewater 219
WBT 195
" }
]
},
"areasSettings": {
"autoZoom": true,
"selectedColor": "#244999"
},
} );
map.addListener( "init", function() {
// small areas
var small = [ "US-MA", "US-RI", "US-CT", "US-NJ", "US-DE", "US-MD", "US-DC" ];
// set up a longitude exceptions for certain areas
var longitude = {
"US-CA": -130,
"US-FL": 120,
"US-TX": 1,
"US-LA": 40
};
var latitude = {
"US-AK": -83
};
// Positions of callouts
var callouts = [
70, 60, 46, 26, 3, -20, -40, -56
];
var offset = 10;
setTimeout( function() {
// iterate through areas and put a label over center of each
//map.dataProvider.images = [];
for ( x in map.dataProvider.areas ) {
var area = map.dataProvider.areas[ x ];
area.groupId = area.id;
var image = new AmCharts.MapImage();
image.title = area.title;
image.linkToObject = area;
image.groupId = area.id;
// callout or regular label
if ( area.callout ) {
image.latitude = callouts.shift();
image.longitude = 165;
image.label = area.value;
image.type = "rectangle";
image.color = area.color;
image.shiftX = offset;
image.width = 22;
image.height = 22;
// create additional image
var image2 = new AmCharts.MapImage();
image2.latitude = image.latitude;
image2.longitude = image.longitude;
image2.label = area.id.split( '-' ).pop();
image2.labelColor = "#000";
image2.labelShiftX = 24;
image2.groupId = area.id;
map.dataProvider.images.push( image2 );
}
else {
image.latitude = latitude[ area.id ] || map.getAreaCenterLatitude( area );
image.longitude = longitude[ area.id ] || map.getAreaCenterLongitude( area );
image.label = area.id.split( '-' ).pop() + "\n" + area.value;
}
map.dataProvider.images.push( image );
}
map.validateData();
}, 100 )
} );