// 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 : 4576
Last 24 Hours : 28
Top 3 Scope Tags : Public Buildings & Facilities 4961
Roads 3823
Water/Wastewater 3540
" }, {"id":"US-AK", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AK
Active Projects : 3197
Last 24 Hours : 15
Top 3 Scope Tags : Public Buildings & Facilities 4565
Roads 3674
Water/Wastewater 2035
" }, {"id":"US-AL", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AL
Active Projects : 2261
Last 24 Hours : 106
Top 3 Scope Tags : Public Buildings & Facilities 10946
Roads 8677
Water/Wastewater 5873
" }, {"id":"US-AR", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AR
Active Projects : 3207
Last 24 Hours : 21
Top 3 Scope Tags : Roads 5904
Public Buildings & Facilities 5280
Water/Wastewater 3345
" }, {"id":"US-AZ", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AZ
Active Projects : 3576
Last 24 Hours : 32
Top 3 Scope Tags : Public Buildings & Facilities 7221
Roads 4260
Water/Wastewater 3915
" }, {"id":"US-BC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "BC
Active Projects : 2088
Last 24 Hours : 110
Top 3 Scope Tags : Public Buildings & Facilities 6913
Water/Wastewater 5428
Roads 4718
" }, {"id":"US-CA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "CA
Active Projects : 45022
Last 24 Hours : 624
Top 3 Scope Tags : Public Buildings & Facilities 52263
Roads 33587
Water/Wastewater 32466
" }, {"id":"US-CO", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "CO
Active Projects : 3042
Last 24 Hours : 101
Top 3 Scope Tags : Public Buildings & Facilities 12636
Roads 9300
Water/Wastewater 6711
" }, {"id":"US-CT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "CT
Active Projects : 4053
Last 24 Hours : 78
Top 3 Scope Tags : Public Buildings & Facilities 8459
Roads 6104
WBT 3904
", "callout": false }, {"id":"US-DC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "DC
Active Projects : 396
Last 24 Hours : 10
Top 3 Scope Tags : Public Buildings & Facilities 4666
Water/Wastewater 1496
WBT 1339
", "callout": false }, {"id":"US-DE", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "DE
Active Projects : 2427
Last 24 Hours : 9
Top 3 Scope Tags : Public Buildings & Facilities 1447
WBT 933
Roads 930
", "callout": false }, {"id":"US-FL", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "FL
Active Projects : 41926
Last 24 Hours : 256
Top 3 Scope Tags : Public Buildings & Facilities 31722
Roads 22542
Water/Wastewater 21240
" }, {"id":"US-GA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "GA
Active Projects : 8013
Last 24 Hours : 117
Top 3 Scope Tags : Public Buildings & Facilities 13868
Roads 11795
Water/Wastewater 8214
" }, {"id":"US-HI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "HI
Active Projects : 4352
Last 24 Hours : 75
Top 3 Scope Tags : Public Buildings & Facilities 4916
Water/Wastewater 2952
WBT 2753
", "callout": false }, {"id":"US-IA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "IA
Active Projects : 5050
Last 24 Hours : 41
Top 3 Scope Tags : Roads 6819
Public Buildings & Facilities 6499
Water/Wastewater 3739
" }, {"id":"US-ID", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ID
Active Projects : 2374
Last 24 Hours : 8
Top 3 Scope Tags : Roads 3729
Public Buildings & Facilities 3175
Water/Wastewater 1975
" }, {"id":"US-IL", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "IL
Active Projects : 20144
Last 24 Hours : 296
Top 3 Scope Tags : Roads 25276
Public Buildings & Facilities 23190
Water/Wastewater 15206
" }, {"id":"US-IN", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "IN
Active Projects : 9797
Last 24 Hours : 82
Top 3 Scope Tags : Roads 10279
Public Buildings & Facilities 7406
WBT 5002
" }, {"id":"US-KS", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "KS
Active Projects : 5151
Last 24 Hours : 73
Top 3 Scope Tags : Roads 6491
Public Buildings & Facilities 5428
Water/Wastewater 3451
" }, {"id":"US-KY", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "KY
Active Projects : 5180
Last 24 Hours : 165
Top 3 Scope Tags : Public Buildings & Facilities 7547
Roads 7546
WBT 4406
" }, {"id":"US-LA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "LA
Active Projects : 4600
Last 24 Hours : 115
Top 3 Scope Tags : Public Buildings & Facilities 12810
Roads 11071
Water/Wastewater 7345
" }, {"id":"US-MA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MA
Active Projects : 7663
Last 24 Hours : 124
Top 3 Scope Tags : Public Buildings & Facilities 28821
Roads 17028
WBT 16371
", "callout": false }, {"id":"US-MB", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MB
Active Projects : 1561
Last 24 Hours : 6
Top 3 Scope Tags : Public Buildings & Facilities 1462
Water/Wastewater 1342
Roads 1246
" }, {"id":"US-MD", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MD
Active Projects : 5567
Last 24 Hours : 62
Top 3 Scope Tags : Public Buildings & Facilities 11362
Water/Wastewater 5886
WBT 5492
", "callout": false }, {"id":"US-ME", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ME
Active Projects : 3044
Last 24 Hours : 61
Top 3 Scope Tags : Public Buildings & Facilities 3721
Roads 3353
Water/Wastewater 1853
" }, {"id":"US-MI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MI
Active Projects : 10398
Last 24 Hours : 108
Top 3 Scope Tags : Roads 23857
Public Buildings & Facilities 16250
WBT 8611
" }, {"id":"US-MN", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MN
Active Projects : 7271
Last 24 Hours : 112
Top 3 Scope Tags : Roads 12051
Public Buildings & Facilities 8497
Water/Wastewater 7414
" }, {"id":"US-MO", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MO
Active Projects : 7518
Last 24 Hours : 91
Top 3 Scope Tags : Public Buildings & Facilities 13390
Roads 12514
Water/Wastewater 6859
" }, {"id":"US-MS", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MS
Active Projects : 1258
Last 24 Hours : 104
Top 3 Scope Tags : Public Buildings & Facilities 6651
Roads 5819
Water/Wastewater 4155
" }, {"id":"US-MT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MT
Active Projects : 1520
Last 24 Hours : 16
Top 3 Scope Tags : Public Buildings & Facilities 3550
Roads 3322
Water/Wastewater 2295
" }, {"id":"US-N/A", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "N/A
Active Projects : 312
Last 24 Hours : 4
Top 3 Scope Tags : Public Buildings & Facilities 919
Water/Wastewater 597
WBT 544
" }, {"id":"US-NB", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NB
Active Projects : 171
Last 24 Hours : 19
Top 3 Scope Tags : Public Buildings & Facilities 1523
Roads 1328
Water/Wastewater 1046
" }, {"id":"US-NC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NC
Active Projects : 5569
Last 24 Hours : 104
Top 3 Scope Tags : Roads 25776
Public Buildings & Facilities 17864
Structural Engineering 13946
" }, {"id":"US-ND", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ND
Active Projects : 2323
Last 24 Hours : 10
Top 3 Scope Tags : Roads 4294
Public Buildings & Facilities 2759
Water/Wastewater 2052
" }, {"id":"US-NE", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NE
Active Projects : 3283
Last 24 Hours : 25
Top 3 Scope Tags : Public Buildings & Facilities 4512
Roads 4332
Water/Wastewater 2499
" }, {"id":"US-NH", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NH
Active Projects : 1187
Last 24 Hours : 16
Top 3 Scope Tags : Roads 2888
Public Buildings & Facilities 2471
Water/Wastewater 1514
" }, {"id":"US-NJ", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NJ
Active Projects : 6655
Last 24 Hours : 170
Top 3 Scope Tags : Public Buildings & Facilities 16668
Roads 12982
WBT 10707
", "callout": false }, {"id":"US-NL", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NL
Active Projects : 86
Last 24 Hours :
Top 3 Scope Tags : WBT 58
Water/Wastewater 40
Roads 27
" }, {"id":"US-NM", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NM
Active Projects : 1474
Last 24 Hours : 31
Top 3 Scope Tags : Public Buildings & Facilities 4713
Water/Wastewater 2484
WBT 2339
" }, {"id":"US-NS", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NS
Active Projects : 886
Last 24 Hours : 26
Top 3 Scope Tags : Roads 2666
Public Buildings & Facilities 2245
Water/Wastewater 1596
" }, {"id":"US-NT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NT
Active Projects : 334
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 453
Water/Wastewater 269
WBT 242
" }, {"id":"US-NU", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NU
Active Projects : 21
Last 24 Hours : 5
Top 3 Scope Tags : Public Buildings & Facilities 339
Water/Wastewater 154
Roads 152
" }, {"id":"US-NV", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NV
Active Projects : 4011
Last 24 Hours : 43
Top 3 Scope Tags : Public Buildings & Facilities 3438
Roads 2559
Water/Wastewater 1995
" }, {"id":"US-NY", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NY
Active Projects : 8215
Last 24 Hours : 216
Top 3 Scope Tags : Public Buildings & Facilities 32689
Water/Wastewater 17431
WBT 16870
" }, {"id":"US-OH", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "OH
Active Projects : 19399
Last 24 Hours : 98
Top 3 Scope Tags : Roads 22928
Public Buildings & Facilities 18651
Water/Wastewater 18151
" }, {"id":"US-OK", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "OK
Active Projects : 5074
Last 24 Hours : 65
Top 3 Scope Tags : Public Buildings & Facilities 9102
Roads 7799
WBT 5093
" }, {"id":"US-ON", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ON
Active Projects : 16893
Last 24 Hours : 211
Top 3 Scope Tags : Public Buildings & Facilities 14993
Water/Wastewater 11980
Roads 11145
" }, {"id":"US-OR", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "OR
Active Projects : 5346
Last 24 Hours : 61
Top 3 Scope Tags : Public Buildings & Facilities 8000
Roads 6857
Water/Wastewater 5583
" }, {"id":"US-PA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "PA
Active Projects : 28317
Last 24 Hours : 289
Top 3 Scope Tags : Roads 32769
Public Buildings & Facilities 25948
Water/Wastewater 16133
" }, {"id":"US-PE", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "PE
Active Projects : 46
Last 24 Hours :
Top 3 Scope Tags : Roads 412
Public Buildings & Facilities 394
Water/Wastewater 248
" }, {"id":"US-PR", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "PR
Active Projects : 47
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 534
Water/Wastewater 163
Military 143
" }, {"id":"US-QC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "QC
Active Projects : 89
Last 24 Hours : 265
Top 3 Scope Tags : Public Buildings & Facilities 11001
Roads 8249
Water/Wastewater 5986
" }, {"id":"US-RI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "RI
Active Projects : 723
Last 24 Hours : 33
Top 3 Scope Tags : Public Buildings & Facilities 2847
Water/Wastewater 1558
WBT 1546
", "callout": false }, {"id":"US-SC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "SC
Active Projects : 4215
Last 24 Hours : 80
Top 3 Scope Tags : Roads 15540
Public Buildings & Facilities 9868
WBT 5425
" }, {"id":"US-SD", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "SD
Active Projects : 1867
Last 24 Hours : 10
Top 3 Scope Tags : Roads 3751
Public Buildings & Facilities 3153
Water/Wastewater 2121
" }, {"id":"US-SK", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "SK
Active Projects : 346
Last 24 Hours : 23
Top 3 Scope Tags : Public Buildings & Facilities 2097
Roads 1949
Water/Wastewater 1619
" }, {"id":"US-TN", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "TN
Active Projects : 4852
Last 24 Hours : 87
Top 3 Scope Tags : Public Buildings & Facilities 11329
Roads 7831
Water/Wastewater 5803
" }, {"id":"US-TX", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "TX
Active Projects : 48887
Last 24 Hours : 321
Top 3 Scope Tags : Roads 42231
Public Buildings & Facilities 37840
Water/Wastewater 30472
" }, {"id":"US-UT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "UT
Active Projects : 1809
Last 24 Hours : 41
Top 3 Scope Tags : Public Buildings & Facilities 6857
Roads 4254
Water/Wastewater 3954
" }, {"id":"US-VA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "VA
Active Projects : 14567
Last 24 Hours : 174
Top 3 Scope Tags : Public Buildings & Facilities 16927
Water/Wastewater 10941
WBT 10424
" }, {"id":"US-VT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "VT
Active Projects : 1244
Last 24 Hours : 7
Top 3 Scope Tags : Roads 2006
Public Buildings & Facilities 1589
Water/Wastewater 1038
" }, {"id":"US-WA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WA
Active Projects : 9650
Last 24 Hours : 132
Top 3 Scope Tags : Public Buildings & Facilities 14452
Roads 13134
Water/Wastewater 10430
" }, {"id":"US-WI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WI
Active Projects : 14918
Last 24 Hours : 44
Top 3 Scope Tags : Roads 12739
Public Buildings & Facilities 10292
Water/Wastewater 8405
" }, {"id":"US-WV", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WV
Active Projects : 1435
Last 24 Hours : 25
Top 3 Scope Tags : Public Buildings & Facilities 3339
Roads 2397
Water/Wastewater 1682
" }, {"id":"US-WY", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WY
Active Projects : 1275
Last 24 Hours : 23
Top 3 Scope Tags : Roads 4070
Public Buildings & Facilities 3705
WBT 1652
" }, {"id":"US-YT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "YT
Active Projects : 291
Last 24 Hours : 2
Top 3 Scope Tags : Public Buildings & Facilities 233
Water/Wastewater 222
WBT 198
" } ] }, "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 ) } );