// 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 : 4518
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 4960
Roads 3819
Water/Wastewater 3536
" }, {"id":"US-AK", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AK
Active Projects : 3197
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 4561
Roads 3673
Water/Wastewater 2034
" }, {"id":"US-AL", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AL
Active Projects : 2256
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 10928
Roads 8668
Water/Wastewater 5861
" }, {"id":"US-AR", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AR
Active Projects : 3207
Last 24 Hours :
Top 3 Scope Tags : Roads 5902
Public Buildings & Facilities 5276
Water/Wastewater 3344
" }, {"id":"US-AZ", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AZ
Active Projects : 3576
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 7213
Roads 4257
Water/Wastewater 3911
" }, {"id":"US-BC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "BC
Active Projects : 2086
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 6898
Water/Wastewater 5416
Roads 4704
" }, {"id":"US-CA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "CA
Active Projects : 45002
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 52202
Roads 33542
Water/Wastewater 32394
" }, {"id":"US-CO", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "CO
Active Projects : 3042
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 12624
Roads 9288
Water/Wastewater 6694
" }, {"id":"US-CT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "CT
Active Projects : 4053
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 8451
Roads 6098
WBT 3897
", "callout": false }, {"id":"US-DC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "DC
Active Projects : 396
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 4665
Water/Wastewater 1495
WBT 1338
", "callout": false }, {"id":"US-DE", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "DE
Active Projects : 2427
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 1446
WBT 932
Roads 930
", "callout": false }, {"id":"US-FL", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "FL
Active Projects : 41895
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 31690
Roads 22520
Water/Wastewater 21215
" }, {"id":"US-GA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "GA
Active Projects : 8012
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 13853
Roads 11773
Water/Wastewater 8204
" }, {"id":"US-HI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "HI
Active Projects : 4352
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 4911
Water/Wastewater 2943
WBT 2744
", "callout": false }, {"id":"US-IA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "IA
Active Projects : 5050
Last 24 Hours :
Top 3 Scope Tags : Roads 6814
Public Buildings & Facilities 6490
Water/Wastewater 3735
" }, {"id":"US-ID", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ID
Active Projects : 2374
Last 24 Hours :
Top 3 Scope Tags : Roads 3729
Public Buildings & Facilities 3174
Water/Wastewater 1974
" }, {"id":"US-IL", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "IL
Active Projects : 20126
Last 24 Hours :
Top 3 Scope Tags : Roads 25231
Public Buildings & Facilities 23161
Water/Wastewater 15174
" }, {"id":"US-IN", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "IN
Active Projects : 9797
Last 24 Hours :
Top 3 Scope Tags : Roads 10267
Public Buildings & Facilities 7399
WBT 4994
" }, {"id":"US-KS", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "KS
Active Projects : 5151
Last 24 Hours :
Top 3 Scope Tags : Roads 6484
Public Buildings & Facilities 5419
Water/Wastewater 3445
" }, {"id":"US-KY", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "KY
Active Projects : 5180
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 7537
Roads 7512
WBT 4400
" }, {"id":"US-LA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "LA
Active Projects : 4600
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 12796
Roads 11057
Water/Wastewater 7329
" }, {"id":"US-MA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MA
Active Projects : 7663
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 28806
Roads 17017
WBT 16358
", "callout": false }, {"id":"US-MB", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MB
Active Projects : 1561
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 1462
Water/Wastewater 1341
Roads 1243
" }, {"id":"US-MD", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MD
Active Projects : 5560
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 11355
Water/Wastewater 5877
WBT 5483
", "callout": false }, {"id":"US-ME", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ME
Active Projects : 3043
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 3716
Roads 3342
Water/Wastewater 1845
" }, {"id":"US-MI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MI
Active Projects : 10398
Last 24 Hours :
Top 3 Scope Tags : Roads 23844
Public Buildings & Facilities 16234
WBT 8602
" }, {"id":"US-MN", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MN
Active Projects : 7270
Last 24 Hours :
Top 3 Scope Tags : Roads 12040
Public Buildings & Facilities 8492
Water/Wastewater 7401
" }, {"id":"US-MO", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MO
Active Projects : 7517
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 13375
Roads 12505
Water/Wastewater 6848
" }, {"id":"US-MS", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MS
Active Projects : 1255
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 6641
Roads 5806
Water/Wastewater 4138
" }, {"id":"US-MT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MT
Active Projects : 1520
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 3546
Roads 3320
Water/Wastewater 2294
" }, {"id":"US-N/A", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "N/A
Active Projects : 309
Last 24 Hours :
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 :
Top 3 Scope Tags : Public Buildings & Facilities 1522
Roads 1324
Water/Wastewater 1043
" }, {"id":"US-NC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NC
Active Projects : 5569
Last 24 Hours :
Top 3 Scope Tags : Roads 25761
Public Buildings & Facilities 17846
Structural Engineering 13937
" }, {"id":"US-ND", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ND
Active Projects : 2323
Last 24 Hours :
Top 3 Scope Tags : Roads 4294
Public Buildings & Facilities 2757
Water/Wastewater 2051
" }, {"id":"US-NE", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NE
Active Projects : 3281
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 4506
Roads 4328
Water/Wastewater 2498
" }, {"id":"US-NH", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NH
Active Projects : 1187
Last 24 Hours :
Top 3 Scope Tags : Roads 2887
Public Buildings & Facilities 2467
Water/Wastewater 1513
" }, {"id":"US-NJ", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NJ
Active Projects : 6655
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 16649
Roads 12964
WBT 10689
", "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 :
Top 3 Scope Tags : Public Buildings & Facilities 4709
Water/Wastewater 2480
WBT 2335
" }, {"id":"US-NS", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NS
Active Projects : 881
Last 24 Hours :
Top 3 Scope Tags : Roads 2660
Public Buildings & Facilities 2242
Water/Wastewater 1593
" }, {"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 :
Top 3 Scope Tags : Public Buildings & Facilities 338
Water/Wastewater 153
Roads 152
" }, {"id":"US-NV", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NV
Active Projects : 4011
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 3433
Roads 2556
Water/Wastewater 1990
" }, {"id":"US-NY", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NY
Active Projects : 8215
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 32665
Water/Wastewater 17408
WBT 16848
" }, {"id":"US-OH", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "OH
Active Projects : 19388
Last 24 Hours :
Top 3 Scope Tags : Roads 22921
Public Buildings & Facilities 18637
Water/Wastewater 18140
" }, {"id":"US-OK", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "OK
Active Projects : 5070
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 9096
Roads 7792
WBT 5086
" }, {"id":"US-ON", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ON
Active Projects : 16699
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 14968
Water/Wastewater 11956
Roads 11129
" }, {"id":"US-OR", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "OR
Active Projects : 5324
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 7989
Roads 6853
Water/Wastewater 5577
" }, {"id":"US-PA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "PA
Active Projects : 28317
Last 24 Hours :
Top 3 Scope Tags : Roads 32738
Public Buildings & Facilities 25917
Water/Wastewater 16102
" }, {"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 :
Top 3 Scope Tags : Public Buildings & Facilities 10963
Roads 8212
Water/Wastewater 5951
" }, {"id":"US-RI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "RI
Active Projects : 723
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 2844
Water/Wastewater 1553
WBT 1541
", "callout": false }, {"id":"US-SC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "SC
Active Projects : 4215
Last 24 Hours :
Top 3 Scope Tags : Roads 15533
Public Buildings & Facilities 9856
WBT 5416
" }, {"id":"US-SD", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "SD
Active Projects : 1867
Last 24 Hours :
Top 3 Scope Tags : Roads 3751
Public Buildings & Facilities 3151
Water/Wastewater 2120
" }, {"id":"US-SK", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "SK
Active Projects : 346
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 2091
Roads 1946
Water/Wastewater 1617
" }, {"id":"US-TN", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "TN
Active Projects : 4852
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 11318
Roads 7818
Water/Wastewater 5792
" }, {"id":"US-TX", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "TX
Active Projects : 48887
Last 24 Hours :
Top 3 Scope Tags : Roads 42203
Public Buildings & Facilities 37802
Water/Wastewater 30429
" }, {"id":"US-UT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "UT
Active Projects : 1809
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 6850
Roads 4250
Water/Wastewater 3952
" }, {"id":"US-VA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "VA
Active Projects : 14567
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 16911
Water/Wastewater 10922
WBT 10405
" }, {"id":"US-VT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "VT
Active Projects : 1244
Last 24 Hours :
Top 3 Scope Tags : Roads 2003
Public Buildings & Facilities 1588
Water/Wastewater 1038
" }, {"id":"US-WA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WA
Active Projects : 9650
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 14438
Roads 13113
Water/Wastewater 10417
" }, {"id":"US-WI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WI
Active Projects : 14906
Last 24 Hours :
Top 3 Scope Tags : Roads 12733
Public Buildings & Facilities 10287
Water/Wastewater 8400
" }, {"id":"US-WV", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WV
Active Projects : 1435
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 3336
Roads 2397
Water/Wastewater 1679
" }, {"id":"US-WY", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WY
Active Projects : 1275
Last 24 Hours :
Top 3 Scope Tags : Roads 4068
Public Buildings & Facilities 3701
WBT 1651
" }, {"id":"US-YT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "YT
Active Projects : 234
Last 24 Hours :
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 ) } );