// 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 : 4510
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 4955
Roads 3811
Water/Wastewater 3534
" }, {"id":"US-AK", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AK
Active Projects : 3195
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 4560
Roads 3672
Water/Wastewater 2029
" }, {"id":"US-AL", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AL
Active Projects : 2256
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 10918
Roads 8666
Water/Wastewater 5857
" }, {"id":"US-AR", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AR
Active Projects : 3195
Last 24 Hours :
Top 3 Scope Tags : Roads 5900
Public Buildings & Facilities 5271
Water/Wastewater 3341
" }, {"id":"US-AZ", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "AZ
Active Projects : 3576
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 7203
Roads 4251
Water/Wastewater 3903
" }, {"id":"US-BC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "BC
Active Projects : 2086
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 6888
Water/Wastewater 5400
Roads 4695
" }, {"id":"US-CA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "CA
Active Projects : 44970
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 52147
Roads 33524
Water/Wastewater 32365
" }, {"id":"US-CO", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "CO
Active Projects : 3042
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 12613
Roads 9281
Water/Wastewater 6679
" }, {"id":"US-CT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "CT
Active Projects : 4043
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 8442
Roads 6093
WBT 3889
", "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 4659
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 1443
Roads 928
WBT 928
", "callout": false }, {"id":"US-FL", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "FL
Active Projects : 41876
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 31677
Roads 22504
Water/Wastewater 21199
" }, {"id":"US-GA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "GA
Active Projects : 8012
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 13839
Roads 11755
Water/Wastewater 8195
" }, {"id":"US-HI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "HI
Active Projects : 4352
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 4898
Water/Wastewater 2932
WBT 2733
", "callout": false }, {"id":"US-IA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "IA
Active Projects : 5047
Last 24 Hours :
Top 3 Scope Tags : Roads 6811
Public Buildings & Facilities 6487
Water/Wastewater 3731
" }, {"id":"US-ID", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ID
Active Projects : 2374
Last 24 Hours :
Top 3 Scope Tags : Roads 3725
Public Buildings & Facilities 3174
Water/Wastewater 1969
" }, {"id":"US-IL", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "IL
Active Projects : 20114
Last 24 Hours :
Top 3 Scope Tags : Roads 25217
Public Buildings & Facilities 23140
Water/Wastewater 15157
" }, {"id":"US-IN", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "IN
Active Projects : 9797
Last 24 Hours :
Top 3 Scope Tags : Roads 10264
Public Buildings & Facilities 7392
WBT 4992
" }, {"id":"US-KS", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "KS
Active Projects : 5151
Last 24 Hours :
Top 3 Scope Tags : Roads 6480
Public Buildings & Facilities 5411
Water/Wastewater 3437
" }, {"id":"US-KY", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "KY
Active Projects : 5180
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 7534
Roads 7507
WBT 4394
" }, {"id":"US-LA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "LA
Active Projects : 4600
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 12786
Roads 11051
Water/Wastewater 7325
" }, {"id":"US-MA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MA
Active Projects : 7663
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 28674
Roads 16928
WBT 16252
", "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 1460
Water/Wastewater 1341
Roads 1243
" }, {"id":"US-MD", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MD
Active Projects : 5558
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 11343
Water/Wastewater 5867
WBT 5475
", "callout": false }, {"id":"US-ME", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ME
Active Projects : 3024
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 3714
Roads 3341
Water/Wastewater 1843
" }, {"id":"US-MI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MI
Active Projects : 10389
Last 24 Hours :
Top 3 Scope Tags : Roads 23837
Public Buildings & Facilities 16224
WBT 8591
" }, {"id":"US-MN", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MN
Active Projects : 7216
Last 24 Hours :
Top 3 Scope Tags : Roads 12031
Public Buildings & Facilities 8483
Water/Wastewater 7389
" }, {"id":"US-MO", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MO
Active Projects : 7512
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 13368
Roads 12501
Water/Wastewater 6839
" }, {"id":"US-MS", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MS
Active Projects : 1255
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 6635
Roads 5798
Water/Wastewater 4131
" }, {"id":"US-MT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "MT
Active Projects : 1520
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 3540
Roads 3316
Water/Wastewater 2290
" }, {"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 917
Water/Wastewater 594
WBT 541
" }, {"id":"US-NB", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NB
Active Projects : 171
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 1520
Roads 1319
Water/Wastewater 1041
" }, {"id":"US-NC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NC
Active Projects : 5569
Last 24 Hours :
Top 3 Scope Tags : Roads 25756
Public Buildings & Facilities 17833
Structural Engineering 13932
" }, {"id":"US-ND", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ND
Active Projects : 2323
Last 24 Hours :
Top 3 Scope Tags : Roads 4288
Public Buildings & Facilities 2749
Water/Wastewater 2047
" }, {"id":"US-NE", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NE
Active Projects : 3281
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 4501
Roads 4326
Water/Wastewater 2494
" }, {"id":"US-NH", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NH
Active Projects : 1187
Last 24 Hours :
Top 3 Scope Tags : Roads 2886
Public Buildings & Facilities 2464
Water/Wastewater 1507
" }, {"id":"US-NJ", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NJ
Active Projects : 6655
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 16636
Roads 12956
WBT 10683
", "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 4706
Water/Wastewater 2477
Roads 2332
" }, {"id":"US-NS", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NS
Active Projects : 881
Last 24 Hours :
Top 3 Scope Tags : Roads 2659
Public Buildings & Facilities 2241
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 452
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 335
Water/Wastewater 152
Roads 150
" }, {"id":"US-NV", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NV
Active Projects : 4011
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 3427
Roads 2554
Water/Wastewater 1986
" }, {"id":"US-NY", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "NY
Active Projects : 8215
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 32640
Water/Wastewater 17393
WBT 16829
" }, {"id":"US-OH", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "OH
Active Projects : 19379
Last 24 Hours :
Top 3 Scope Tags : Roads 22782
Public Buildings & Facilities 18625
Water/Wastewater 18125
" }, {"id":"US-OK", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "OK
Active Projects : 5070
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 9092
Roads 7785
WBT 5080
" }, {"id":"US-ON", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "ON
Active Projects : 16689
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 14943
Water/Wastewater 11929
Roads 11112
" }, {"id":"US-OR", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "OR
Active Projects : 5324
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 7983
Roads 6844
Water/Wastewater 5565
" }, {"id":"US-PA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "PA
Active Projects : 28311
Last 24 Hours :
Top 3 Scope Tags : Roads 32721
Public Buildings & Facilities 25905
Water/Wastewater 16090
" }, {"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 393
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 10916
Roads 8176
Water/Wastewater 5915
" }, {"id":"US-RI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "RI
Active Projects : 723
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 2842
Water/Wastewater 1550
WBT 1538
", "callout": false }, {"id":"US-SC", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "SC
Active Projects : 4215
Last 24 Hours :
Top 3 Scope Tags : Roads 15530
Public Buildings & Facilities 9842
WBT 5410
" }, {"id":"US-SD", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "SD
Active Projects : 1867
Last 24 Hours :
Top 3 Scope Tags : Roads 3743
Public Buildings & Facilities 3148
Water/Wastewater 2118
" }, {"id":"US-SK", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "SK
Active Projects : 346
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 2088
Roads 1941
Water/Wastewater 1611
" }, {"id":"US-TN", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "TN
Active Projects : 4852
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 11312
Roads 7817
Water/Wastewater 5789
" }, {"id":"US-TX", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "TX
Active Projects : 48875
Last 24 Hours :
Top 3 Scope Tags : Roads 42183
Public Buildings & Facilities 37783
Water/Wastewater 30419
" }, {"id":"US-UT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "UT
Active Projects : 1803
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 6840
Roads 4246
Water/Wastewater 3947
" }, {"id":"US-VA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "VA
Active Projects : 14567
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 16900
Water/Wastewater 10911
WBT 10393
" }, {"id":"US-VT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "VT
Active Projects : 1244
Last 24 Hours :
Top 3 Scope Tags : Roads 2001
Public Buildings & Facilities 1585
Water/Wastewater 1037
" }, {"id":"US-WA", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WA
Active Projects : 9650
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 14423
Roads 13099
Water/Wastewater 10402
" }, {"id":"US-WI", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WI
Active Projects : 14889
Last 24 Hours :
Top 3 Scope Tags : Roads 12713
Public Buildings & Facilities 10280
Water/Wastewater 8391
" }, {"id":"US-WV", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WV
Active Projects : 1435
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 3335
Roads 2396
Water/Wastewater 1678
" }, {"id":"US-WY", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "WY
Active Projects : 1275
Last 24 Hours :
Top 3 Scope Tags : Roads 4064
Public Buildings & Facilities 3693
WBT 1650
" }, {"id":"US-YT", "outlineThickness":1, "outlineColor": "#e1e1e1","value":"", "balloonText" : "YT
Active Projects : 233
Last 24 Hours :
Top 3 Scope Tags : Public Buildings & Facilities 231
Water/Wastewater 221
WBT 197
" } ] }, "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 ) } );