Skip to content

Instantly share code, notes, and snippets.

@twedl
Last active April 26, 2016 12:02
Show Gist options
  • Save twedl/b4115eed3b8f56e835da to your computer and use it in GitHub Desktop.
Save twedl/b4115eed3b8f56e835da to your computer and use it in GitHub Desktop.
Canadian Trade Map (Leaflet Version)

(Please click this link to open in new window.) Testing Bostock's leaflet.js tutorial, adding relevant Canadian stuff for the project.

@import url(//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css);
@import url(//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.5/leaflet.css);
/*@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700|Roboto|Droid+Sans|Droid+Sans+Mono);*/
body {
text-align: center;
font-family: 'Lucida Console', sans-serif;
/*
font-family: 'Open Sans', sans-serif;
font-family: 'Roboto', sans-serif;
font-family: 'Droid Sans', sans-serif;
font-family: 'Droid Sans Mono';*/
}
#stats {
text-align: left;
width: 960px;
height: 170px;
display: inline-block;
}
#map, #footer {
width: 960px;
height: 500px;
display: inline-block;
}
svg {
position: relative;
}
path {
fill: #444;
fill-opacity: 0;
stroke: #fff;
stroke-width: 1.5px;
}
path:hover {
fill: #444;
fill-opacity: 0.1;
stroke: #fff;
cursor: default;
}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
dger oger d o value origin_name destination_name
101 101 1 1 984.3127 Avalon Burin Peninsula South Coast Avalon Burin Peninsula South Coast
102 101 2 1 8.099552 Avalon Burin Peninsula South Coast North
111 101 3 1 2.089556 Avalon Burin Peninsula South Coast Prince Edward Island / ële-du-Prince-ƒdouard
121 101 4 1 8.355503 Avalon Burin Peninsula South Coast Cape Breton and North Shore
122 101 5 1 16.11839 Avalon Burin Peninsula South Coast Halifax Southern and Annapolis Valley
131 101 6 1 15.54133 Avalon Burin Peninsula South Coast Northern and Eastern
132 101 7 1 4.981016 Avalon Burin Peninsula South Coast South Central
241 101 8 1 7.021729 Avalon Burin Peninsula South Coast Outaouais Abitibi-TŽmiscamingue
242 101 9 1 1.535556 Avalon Burin Peninsula South Coast Nord-du-QuŽbec
243 101 10 1 131.1543 Avalon Burin Peninsula South Coast QuŽbec City-Saguenay-Beauce-Estrie
244 101 11 1 161.8486 Avalon Burin Peninsula South Coast Greater Montreal
245 101 12 1 65.68951 Avalon Burin Peninsula South Coast Bas-Saint-Laurent GaspŽsie C™te-Nord
351 101 13 1 3.242362 Avalon Burin Peninsula South Coast Northwest / Nord-ouest
352 101 14 1 4.768528 Avalon Burin Peninsula South Coast Northeast / Nord-est
353 101 15 1 19.97343 Avalon Burin Peninsula South Coast Southwestern
354 101 16 1 107.1727 Avalon Burin Peninsula South Coast Toronto Central
355 101 17 1 34.87882 Avalon Burin Peninsula South Coast Eastern
461 101 18 1 22.75756 Avalon Burin Peninsula South Coast Northern
462 101 19 1 10.27588 Avalon Burin Peninsula South Coast Southern
463 101 20 1 5.43021 Avalon Burin Peninsula South Coast Winnipeg
471 101 21 1 30.44343 Avalon Burin Peninsula South Coast Northern
472 101 22 1 8.422136 Avalon Burin Peninsula South Coast Central
473 101 23 1 6.252128 Avalon Burin Peninsula South Coast Southern
481 101 24 1 52.80095 Avalon Burin Peninsula South Coast Northern
482 101 25 1 37.58284 Avalon Burin Peninsula South Coast Central
483 101 26 1 22.18596 Avalon Burin Peninsula South Coast Edmonton
484 101 27 1 11.56985 Avalon Burin Peninsula South Coast Calgary
591 101 28 1 9.944095 Avalon Burin Peninsula South Coast Northern
592 101 29 1 40.97757 Avalon Burin Peninsula South Coast Interior
593 101 30 1 101.3299 Avalon Burin Peninsula South Coast Lower Mainland Vancouver Island
101 102 1 2 9.601412 North Avalon Burin Peninsula South Coast
102 102 2 2 742.4616 North North
111 102 3 2 .9102298 North Prince Edward Island / ële-du-Prince-ƒdouard
121 102 4 2 4.350325 North Cape Breton and North Shore
122 102 5 2 7.985037 North Halifax Southern and Annapolis Valley
131 102 6 2 8.124892 North Northern and Eastern
132 102 7 2 3.177093 North South Central
241 102 8 2 4.9332 North Outaouais Abitibi-TŽmiscamingue
242 102 9 2 .8248547 North Nord-du-QuŽbec
243 102 10 2 72.28397 North QuŽbec City-Saguenay-Beauce-Estrie
244 102 11 2 93.09887 North Greater Montreal
245 102 12 2 15.55861 North Bas-Saint-Laurent GaspŽsie C™te-Nord
351 102 13 2 2.38461 North Northwest / Nord-ouest
352 102 14 2 2.868177 North Northeast / Nord-est
353 102 15 2 16.26915 North Southwestern
354 102 16 2 69.22646 North Toronto Central
355 102 17 2 23.90323 North Eastern
461 102 18 2 12.06885 North Northern
462 102 19 2 7.432217 North Southern
463 102 20 2 4.764526 North Winnipeg
471 102 21 2 11.42101 North Northern
472 102 22 2 12.26567 North Central
473 102 23 2 9.013103 North Southern
481 102 24 2 10.00357 North Northern
482 102 25 2 67.69915 North Central
483 102 26 2 112.0291 North Edmonton
484 102 27 2 22.42817 North Calgary
591 102 28 2 4.123858 North Northern
592 102 29 2 61.5373 North Interior
593 102 30 2 92.12228 North Lower Mainland Vancouver Island
101 111 1 3 2.220722 Prince Edward Island / ële-du-Prince-ƒdouard Avalon Burin Peninsula South Coast
102 111 2 3 .8271227 Prince Edward Island / ële-du-Prince-ƒdouard North
111 111 3 3 255.0107 Prince Edward Island / ële-du-Prince-ƒdouard Prince Edward Island / ële-du-Prince-ƒdouard
121 111 4 3 19.3881 Prince Edward Island / ële-du-Prince-ƒdouard Cape Breton and North Shore
122 111 5 3 11.63387 Prince Edward Island / ële-du-Prince-ƒdouard Halifax Southern and Annapolis Valley
131 111 6 3 14.91777 Prince Edward Island / ële-du-Prince-ƒdouard Northern and Eastern
132 111 7 3 4.444575 Prince Edward Island / ële-du-Prince-ƒdouard South Central
241 111 8 3 2.448371 Prince Edward Island / ële-du-Prince-ƒdouard Outaouais Abitibi-TŽmiscamingue
242 111 9 3 .1063551 Prince Edward Island / ële-du-Prince-ƒdouard Nord-du-QuŽbec
243 111 10 3 64.03899 Prince Edward Island / ële-du-Prince-ƒdouard QuŽbec City-Saguenay-Beauce-Estrie
244 111 11 3 60.11633 Prince Edward Island / ële-du-Prince-ƒdouard Greater Montreal
245 111 12 3 4.750599 Prince Edward Island / ële-du-Prince-ƒdouard Bas-Saint-Laurent GaspŽsie C™te-Nord
351 111 13 3 .6066615 Prince Edward Island / ële-du-Prince-ƒdouard Northwest / Nord-ouest
352 111 14 3 1.068305 Prince Edward Island / ële-du-Prince-ƒdouard Northeast / Nord-est
353 111 15 3 6.619111 Prince Edward Island / ële-du-Prince-ƒdouard Southwestern
354 111 16 3 28.92495 Prince Edward Island / ële-du-Prince-ƒdouard Toronto Central
355 111 17 3 10.80312 Prince Edward Island / ële-du-Prince-ƒdouard Eastern
461 111 18 3 1.649622 Prince Edward Island / ële-du-Prince-ƒdouard Northern
462 111 19 3 1.495183 Prince Edward Island / ële-du-Prince-ƒdouard Southern
463 111 20 3 .8588011 Prince Edward Island / ële-du-Prince-ƒdouard Winnipeg
471 111 21 3 1.457671 Prince Edward Island / ële-du-Prince-ƒdouard Northern
472 111 22 3 1.179762 Prince Edward Island / ële-du-Prince-ƒdouard Central
473 111 23 3 1.018425 Prince Edward Island / ële-du-Prince-ƒdouard Southern
481 111 24 3 2.857905 Prince Edward Island / ële-du-Prince-ƒdouard Northern
482 111 25 3 5.052323 Prince Edward Island / ële-du-Prince-ƒdouard Central
483 111 26 3 2.150837 Prince Edward Island / ële-du-Prince-ƒdouard Edmonton
484 111 27 3 1.721655 Prince Edward Island / ële-du-Prince-ƒdouard Calgary
591 111 28 3 1.924181 Prince Edward Island / ële-du-Prince-ƒdouard Northern
592 111 29 3 4.131002 Prince Edward Island / ële-du-Prince-ƒdouard Interior
593 111 30 3 11.513 Prince Edward Island / ële-du-Prince-ƒdouard Lower Mainland Vancouver Island
101 121 1 4 8.579189 Cape Breton and North Shore Avalon Burin Peninsula South Coast
102 121 2 4 3.631751 Cape Breton and North Shore North
111 121 3 4 17.44508 Cape Breton and North Shore Prince Edward Island / ële-du-Prince-ƒdouard
121 121 4 4 1538.644 Cape Breton and North Shore Cape Breton and North Shore
122 121 5 4 53.94206 Cape Breton and North Shore Halifax Southern and Annapolis Valley
131 121 6 4 45.8033 Cape Breton and North Shore Northern and Eastern
132 121 7 4 19.01808 Cape Breton and North Shore South Central
241 121 8 4 10.10317 Cape Breton and North Shore Outaouais Abitibi-TŽmiscamingue
242 121 9 4 .49792 Cape Breton and North Shore Nord-du-QuŽbec
243 121 10 4 242.0264 Cape Breton and North Shore QuŽbec City-Saguenay-Beauce-Estrie
244 121 11 4 221.9841 Cape Breton and North Shore Greater Montreal
245 121 12 4 24.8816 Cape Breton and North Shore Bas-Saint-Laurent GaspŽsie C™te-Nord
351 121 13 4 2.103348 Cape Breton and North Shore Northwest / Nord-ouest
352 121 14 4 5.000606 Cape Breton and North Shore Northeast / Nord-est
353 121 15 4 30.02091 Cape Breton and North Shore Southwestern
354 121 16 4 135.8826 Cape Breton and North Shore Toronto Central
355 121 17 4 41.64848 Cape Breton and North Shore Eastern
461 121 18 4 5.882361 Cape Breton and North Shore Northern
462 121 19 4 6.477649 Cape Breton and North Shore Southern
463 121 20 4 2.746972 Cape Breton and North Shore Winnipeg
471 121 21 4 5.984814 Cape Breton and North Shore Northern
472 121 22 4 4.310442 Cape Breton and North Shore Central
473 121 23 4 3.365346 Cape Breton and North Shore Southern
481 121 24 4 13.4711 Cape Breton and North Shore Northern
482 121 25 4 18.95337 Cape Breton and North Shore Central
483 121 26 4 8.819804 Cape Breton and North Shore Edmonton
484 121 27 4 7.969756 Cape Breton and North Shore Calgary
591 121 28 4 7.813455 Cape Breton and North Shore Northern
592 121 29 4 19.82539 Cape Breton and North Shore Interior
593 121 30 4 64.61187 Cape Breton and North Shore Lower Mainland Vancouver Island
101 122 1 5 17.68439 Halifax Southern and Annapolis Valley Avalon Burin Peninsula South Coast
102 122 2 5 7.832485 Halifax Southern and Annapolis Valley North
111 122 3 5 11.35647 Halifax Southern and Annapolis Valley Prince Edward Island / ële-du-Prince-ƒdouard
121 122 4 5 51.51924 Halifax Southern and Annapolis Valley Cape Breton and North Shore
122 122 5 5 3473.497 Halifax Southern and Annapolis Valley Halifax Southern and Annapolis Valley
131 122 6 5 131.2373 Halifax Southern and Annapolis Valley Northern and Eastern
132 122 7 5 82.1773 Halifax Southern and Annapolis Valley South Central
241 122 8 5 27.39523 Halifax Southern and Annapolis Valley Outaouais Abitibi-TŽmiscamingue
242 122 9 5 1.090073 Halifax Southern and Annapolis Valley Nord-du-QuŽbec
243 122 10 5 645.9607 Halifax Southern and Annapolis Valley QuŽbec City-Saguenay-Beauce-Estrie
244 122 11 5 899.6218 Halifax Southern and Annapolis Valley Greater Montreal
245 122 12 5 42.67099 Halifax Southern and Annapolis Valley Bas-Saint-Laurent GaspŽsie C™te-Nord
351 122 13 5 4.958267 Halifax Southern and Annapolis Valley Northwest / Nord-ouest
352 122 14 5 11.46261 Halifax Southern and Annapolis Valley Northeast / Nord-est
353 122 15 5 76.4137 Halifax Southern and Annapolis Valley Southwestern
354 122 16 5 445.1566 Halifax Southern and Annapolis Valley Toronto Central
355 122 17 5 175.7823 Halifax Southern and Annapolis Valley Eastern
461 122 18 5 15.67433 Halifax Southern and Annapolis Valley Northern
462 122 19 5 16.64748 Halifax Southern and Annapolis Valley Southern
463 122 20 5 9.071324 Halifax Southern and Annapolis Valley Winnipeg
471 122 21 5 12.79234 Halifax Southern and Annapolis Valley Northern
472 122 22 5 12.19552 Halifax Southern and Annapolis Valley Central
473 122 23 5 12.26773 Halifax Southern and Annapolis Valley Southern
481 122 24 5 25.79162 Halifax Southern and Annapolis Valley Northern
482 122 25 5 53.31303 Halifax Southern and Annapolis Valley Central
483 122 26 5 27.25003 Halifax Southern and Annapolis Valley Edmonton
484 122 27 5 19.63362 Halifax Southern and Annapolis Valley Calgary
591 122 28 5 19.18617 Halifax Southern and Annapolis Valley Northern
592 122 29 5 50.97406 Halifax Southern and Annapolis Valley Interior
593 122 30 5 160.93 Halifax Southern and Annapolis Valley Lower Mainland Vancouver Island
101 131 1 6 16.49331 Northern and Eastern Avalon Burin Peninsula South Coast
102 131 2 6 7.439193 Northern and Eastern North
111 131 3 6 14.35234 Northern and Eastern Prince Edward Island / ële-du-Prince-ƒdouard
121 131 4 6 53.20311 Northern and Eastern Cape Breton and North Shore
122 131 5 6 123.491 Northern and Eastern Halifax Southern and Annapolis Valley
131 131 6 6 3109.636 Northern and Eastern Northern and Eastern
132 131 7 6 61.61562 Northern and Eastern South Central
241 131 8 6 23.95347 Northern and Eastern Outaouais Abitibi-TŽmiscamingue
242 131 9 6 .7646489 Northern and Eastern Nord-du-QuŽbec
243 131 10 6 897.8226 Northern and Eastern QuŽbec City-Saguenay-Beauce-Estrie
244 131 11 6 760.1245 Northern and Eastern Greater Montreal
245 131 12 6 46.03513 Northern and Eastern Bas-Saint-Laurent GaspŽsie C™te-Nord
351 131 13 6 4.63309 Northern and Eastern Northwest / Nord-ouest
352 131 14 6 11.96725 Northern and Eastern Northeast / Nord-est
353 131 15 6 72.13139 Northern and Eastern Southwestern
354 131 16 6 322.2571 Northern and Eastern Toronto Central
355 131 17 6 122.1198 Northern and Eastern Eastern
461 131 18 6 16.27291 Northern and Eastern Northern
462 131 19 6 13.37905 Northern and Eastern Southern
463 131 20 6 7.86823 Northern and Eastern Winnipeg
471 131 21 6 12.40266 Northern and Eastern Northern
472 131 22 6 10.45399 Northern and Eastern Central
473 131 23 6 9.398986 Northern and Eastern Southern
481 131 24 6 24.98397 Northern and Eastern Northern
482 131 25 6 38.28948 Northern and Eastern Central
483 131 26 6 18.29891 Northern and Eastern Edmonton
484 131 27 6 13.78372 Northern and Eastern Calgary
591 131 28 6 21.48385 Northern and Eastern Northern
592 131 29 6 36.10161 Northern and Eastern Interior
593 131 30 6 123.3117 Northern and Eastern Lower Mainland Vancouver Island
101 132 1 7 6.506078 South Central Avalon Burin Peninsula South Coast
102 132 2 7 3.360264 South Central North
111 132 3 7 4.307472 South Central Prince Edward Island / ële-du-Prince-ƒdouard
121 132 4 7 19.42427 South Central Cape Breton and North Shore
122 132 5 7 101.2281 South Central Halifax Southern and Annapolis Valley
131 132 6 7 75.67583 South Central Northern and Eastern
132 132 7 7 1171.974 South Central South Central
241 132 8 7 10.46531 South Central Outaouais Abitibi-TŽmiscamingue
242 132 9 7 .3500553 South Central Nord-du-QuŽbec
243 132 10 7 272.765 South Central QuŽbec City-Saguenay-Beauce-Estrie
244 132 11 7 310.6383 South Central Greater Montreal
245 132 12 7 13.37325 South Central Bas-Saint-Laurent GaspŽsie C™te-Nord
351 132 13 7 1.751081 South Central Northwest / Nord-ouest
352 132 14 7 5.174992 South Central Northeast / Nord-est
353 132 15 7 33.94946 South Central Southwestern
354 132 16 7 183.3284 South Central Toronto Central
355 132 17 7 53.69545 South Central Eastern
461 132 18 7 5.710446 South Central Northern
462 132 19 7 4.035607 South Central Southern
463 132 20 7 3.232155 South Central Winnipeg
471 132 21 7 4.055808 South Central Northern
472 132 22 7 3.680605 South Central Central
473 132 23 7 3.753557 South Central Southern
481 132 24 7 9.478463 South Central Northern
482 132 25 7 14.87205 South Central Central
483 132 26 7 6.961051 South Central Edmonton
484 132 27 7 6.464569 South Central Calgary
591 132 28 7 6.873112 South Central Northern
592 132 29 7 14.5618 South Central Interior
593 132 30 7 40.83995 South Central Lower Mainland Vancouver Island
101 241 1 8 7.531478 Outaouais Abitibi-TŽmiscamingue Avalon Burin Peninsula South Coast
102 241 2 8 3.664131 Outaouais Abitibi-TŽmiscamingue North
111 241 3 8 1.867843 Outaouais Abitibi-TŽmiscamingue Prince Edward Island / ële-du-Prince-ƒdouard
121 241 4 8 9.481509 Outaouais Abitibi-TŽmiscamingue Cape Breton and North Shore
122 241 5 8 31.41567 Outaouais Abitibi-TŽmiscamingue Halifax Southern and Annapolis Valley
131 241 6 8 23.98971 Outaouais Abitibi-TŽmiscamingue Northern and Eastern
132 241 7 8 10.51567 Outaouais Abitibi-TŽmiscamingue South Central
241 241 8 8 2496.368 Outaouais Abitibi-TŽmiscamingue Outaouais Abitibi-TŽmiscamingue
242 241 9 8 .4406683 Outaouais Abitibi-TŽmiscamingue Nord-du-QuŽbec
243 241 10 8 432.9266 Outaouais Abitibi-TŽmiscamingue QuŽbec City-Saguenay-Beauce-Estrie
244 241 11 8 1284.497 Outaouais Abitibi-TŽmiscamingue Greater Montreal
245 241 12 8 17.53542 Outaouais Abitibi-TŽmiscamingue Bas-Saint-Laurent GaspŽsie C™te-Nord
351 241 13 8 4.490458 Outaouais Abitibi-TŽmiscamingue Northwest / Nord-ouest
352 241 14 8 21.64404 Outaouais Abitibi-TŽmiscamingue Northeast / Nord-est
353 241 15 8 66.13217 Outaouais Abitibi-TŽmiscamingue Southwestern
354 241 16 8 578.7759 Outaouais Abitibi-TŽmiscamingue Toronto Central
355 241 17 8 194.4836 Outaouais Abitibi-TŽmiscamingue Eastern
461 241 18 8 8.685161 Outaouais Abitibi-TŽmiscamingue Northern
462 241 19 8 9.580308 Outaouais Abitibi-TŽmiscamingue Southern
463 241 20 8 7.712577 Outaouais Abitibi-TŽmiscamingue Winnipeg
471 241 21 8 5.801065 Outaouais Abitibi-TŽmiscamingue Northern
472 241 22 8 7.141022 Outaouais Abitibi-TŽmiscamingue Central
473 241 23 8 6.092128 Outaouais Abitibi-TŽmiscamingue Southern
481 241 24 8 10.0126 Outaouais Abitibi-TŽmiscamingue Northern
482 241 25 8 24.28199 Outaouais Abitibi-TŽmiscamingue Central
483 241 26 8 10.31845 Outaouais Abitibi-TŽmiscamingue Edmonton
484 241 27 8 8.973546 Outaouais Abitibi-TŽmiscamingue Calgary
591 241 28 8 9.224791 Outaouais Abitibi-TŽmiscamingue Northern
592 241 29 8 21.1512 Outaouais Abitibi-TŽmiscamingue Interior
593 241 30 8 49.88137 Outaouais Abitibi-TŽmiscamingue Lower Mainland Vancouver Island
101 242 1 9 1.504422 Nord-du-QuŽbec Avalon Burin Peninsula South Coast
102 242 2 9 .8012257 Nord-du-QuŽbec North
111 242 3 9 .1001034 Nord-du-QuŽbec Prince Edward Island / ële-du-Prince-ƒdouard
121 242 4 9 .4592259 Nord-du-QuŽbec Cape Breton and North Shore
122 242 5 9 1.004118 Nord-du-QuŽbec Halifax Southern and Annapolis Valley
131 242 6 9 .6753595 Nord-du-QuŽbec Northern and Eastern
132 242 7 9 .4136108 Nord-du-QuŽbec South Central
241 242 8 9 .4383362 Nord-du-QuŽbec Outaouais Abitibi-TŽmiscamingue
242 242 9 9 87.20995 Nord-du-QuŽbec Nord-du-QuŽbec
243 242 10 9 9.49181 Nord-du-QuŽbec QuŽbec City-Saguenay-Beauce-Estrie
244 242 11 9 10.73813 Nord-du-QuŽbec Greater Montreal
245 242 12 9 2.218613 Nord-du-QuŽbec Bas-Saint-Laurent GaspŽsie C™te-Nord
351 242 13 9 .1859243 Nord-du-QuŽbec Northwest / Nord-ouest
352 242 14 9 .266134 Nord-du-QuŽbec Northeast / Nord-est
353 242 15 9 1.386601 Nord-du-QuŽbec Southwestern
354 242 16 9 7.919232 Nord-du-QuŽbec Toronto Central
355 242 17 9 2.05811 Nord-du-QuŽbec Eastern
461 242 18 9 1.108742 Nord-du-QuŽbec Northern
462 242 19 9 .5962381 Nord-du-QuŽbec Southern
463 242 20 9 .3052351 Nord-du-QuŽbec Winnipeg
471 242 21 9 1.1581 Nord-du-QuŽbec Northern
472 242 22 9 .5687031 Nord-du-QuŽbec Central
473 242 23 9 .475722 Nord-du-QuŽbec Southern
481 242 24 9 1.098048 Nord-du-QuŽbec Northern
482 242 25 9 2.784804 Nord-du-QuŽbec Central
483 242 26 9 2.247127 Nord-du-QuŽbec Edmonton
484 242 27 9 1.007781 Nord-du-QuŽbec Calgary
591 242 28 9 .3927948 Nord-du-QuŽbec Northern
592 242 29 9 3.986897 Nord-du-QuŽbec Interior
593 242 30 9 13.93456 Nord-du-QuŽbec Lower Mainland Vancouver Island
101 243 1 10 153.309 QuŽbec City-Saguenay-Beauce-Estrie Avalon Burin Peninsula South Coast
102 243 2 10 80.21909 QuŽbec City-Saguenay-Beauce-Estrie North
111 243 3 10 51.69877 QuŽbec City-Saguenay-Beauce-Estrie Prince Edward Island / ële-du-Prince-ƒdouard
121 243 4 10 252.4393 QuŽbec City-Saguenay-Beauce-Estrie Cape Breton and North Shore
122 243 5 10 613.1726 QuŽbec City-Saguenay-Beauce-Estrie Halifax Southern and Annapolis Valley
131 243 6 10 804.5508 QuŽbec City-Saguenay-Beauce-Estrie Northern and Eastern
132 243 7 10 296.4896 QuŽbec City-Saguenay-Beauce-Estrie South Central
241 243 8 10 366.3578 QuŽbec City-Saguenay-Beauce-Estrie Outaouais Abitibi-TŽmiscamingue
242 243 9 10 8.730639 QuŽbec City-Saguenay-Beauce-Estrie Nord-du-QuŽbec
243 243 10 10 25646.19 QuŽbec City-Saguenay-Beauce-Estrie QuŽbec City-Saguenay-Beauce-Estrie
244 243 11 10 11353.47 QuŽbec City-Saguenay-Beauce-Estrie Greater Montreal
245 243 12 10 373.4589 QuŽbec City-Saguenay-Beauce-Estrie Bas-Saint-Laurent GaspŽsie C™te-Nord
351 243 13 10 59.39408 QuŽbec City-Saguenay-Beauce-Estrie Northwest / Nord-ouest
352 243 14 10 169.9424 QuŽbec City-Saguenay-Beauce-Estrie Northeast / Nord-est
353 243 15 10 664.4822 QuŽbec City-Saguenay-Beauce-Estrie Southwestern
354 243 16 10 4192.429 QuŽbec City-Saguenay-Beauce-Estrie Toronto Central
355 243 17 10 1496.318 QuŽbec City-Saguenay-Beauce-Estrie Eastern
461 243 18 10 159.2187 QuŽbec City-Saguenay-Beauce-Estrie Northern
462 243 19 10 126.4636 QuŽbec City-Saguenay-Beauce-Estrie Southern
463 243 20 10 74.65754 QuŽbec City-Saguenay-Beauce-Estrie Winnipeg
471 243 21 10 119.305 QuŽbec City-Saguenay-Beauce-Estrie Northern
472 243 22 10 88.85609 QuŽbec City-Saguenay-Beauce-Estrie Central
473 243 23 10 96.11376 QuŽbec City-Saguenay-Beauce-Estrie Southern
481 243 24 10 188.9678 QuŽbec City-Saguenay-Beauce-Estrie Northern
482 243 25 10 408.6449 QuŽbec City-Saguenay-Beauce-Estrie Central
483 243 26 10 172.9547 QuŽbec City-Saguenay-Beauce-Estrie Edmonton
484 243 27 10 163.6743 QuŽbec City-Saguenay-Beauce-Estrie Calgary
591 243 28 10 232.6371 QuŽbec City-Saguenay-Beauce-Estrie Northern
592 243 29 10 329.9494 QuŽbec City-Saguenay-Beauce-Estrie Interior
593 243 30 10 1089.134 QuŽbec City-Saguenay-Beauce-Estrie Lower Mainland Vancouver Island
101 244 1 11 190.6577 Greater Montreal Avalon Burin Peninsula South Coast
102 244 2 11 110.8121 Greater Montreal North
111 244 3 11 65.86313 Greater Montreal Prince Edward Island / ële-du-Prince-ƒdouard
121 244 4 11 202.8652 Greater Montreal Cape Breton and North Shore
122 244 5 11 871.1135 Greater Montreal Halifax Southern and Annapolis Valley
131 244 6 11 744.8326 Greater Montreal Northern and Eastern
132 244 7 11 367.2198 Greater Montreal South Central
241 244 8 11 1310.558 Greater Montreal Outaouais Abitibi-TŽmiscamingue
242 244 9 11 8.798215 Greater Montreal Nord-du-QuŽbec
243 244 10 11 9931.757 Greater Montreal QuŽbec City-Saguenay-Beauce-Estrie
244 244 11 11 49163.98 Greater Montreal Greater Montreal
245 244 12 11 386.4294 Greater Montreal Bas-Saint-Laurent GaspŽsie C™te-Nord
351 244 13 11 74.35348 Greater Montreal Northwest / Nord-ouest
352 244 14 11 345.1287 Greater Montreal Northeast / Nord-est
353 244 15 11 1966.958 Greater Montreal Southwestern
354 244 16 11 12223.13 Greater Montreal Toronto Central
355 244 17 11 6001.098 Greater Montreal Eastern
461 244 18 11 163.3187 Greater Montreal Northern
462 244 19 11 214.4857 Greater Montreal Southern
463 244 20 11 123.8131 Greater Montreal Winnipeg
471 244 21 11 136.0007 Greater Montreal Northern
472 244 22 11 140.4266 Greater Montreal Central
473 244 23 11 132.7297 Greater Montreal Southern
481 244 24 11 219.7968 Greater Montreal Northern
482 244 25 11 596.3239 Greater Montreal Central
483 244 26 11 195.6475 Greater Montreal Edmonton
484 244 27 11 175.9174 Greater Montreal Calgary
591 244 28 11 243.4084 Greater Montreal Northern
592 244 29 11 459.1271 Greater Montreal Interior
593 244 30 11 1274.941 Greater Montreal Lower Mainland Vancouver Island
101 245 1 12 97.69545 Bas-Saint-Laurent GaspŽsie C™te-Nord Avalon Burin Peninsula South Coast
102 245 2 12 14.07871 Bas-Saint-Laurent GaspŽsie C™te-Nord North
111 245 3 12 5.036633 Bas-Saint-Laurent GaspŽsie C™te-Nord Prince Edward Island / ële-du-Prince-ƒdouard
121 245 4 12 21.82982 Bas-Saint-Laurent GaspŽsie C™te-Nord Cape Breton and North Shore
122 245 5 12 38.80117 Bas-Saint-Laurent GaspŽsie C™te-Nord Halifax Southern and Annapolis Valley
131 245 6 12 40.19017 Bas-Saint-Laurent GaspŽsie C™te-Nord Northern and Eastern
132 245 7 12 12.34348 Bas-Saint-Laurent GaspŽsie C™te-Nord South Central
241 245 8 12 16.76421 Bas-Saint-Laurent GaspŽsie C™te-Nord Outaouais Abitibi-TŽmiscamingue
242 245 9 12 1.76285 Bas-Saint-Laurent GaspŽsie C™te-Nord Nord-du-QuŽbec
243 245 10 12 423.2486 Bas-Saint-Laurent GaspŽsie C™te-Nord QuŽbec City-Saguenay-Beauce-Estrie
244 245 11 12 382.9153 Bas-Saint-Laurent GaspŽsie C™te-Nord Greater Montreal
245 245 12 12 3597.482 Bas-Saint-Laurent GaspŽsie C™te-Nord Bas-Saint-Laurent GaspŽsie C™te-Nord
351 245 13 12 6.425944 Bas-Saint-Laurent GaspŽsie C™te-Nord Northwest / Nord-ouest
352 245 14 12 10.55204 Bas-Saint-Laurent GaspŽsie C™te-Nord Northeast / Nord-est
353 245 15 12 47.85616 Bas-Saint-Laurent GaspŽsie C™te-Nord Southwestern
354 245 16 12 303.3916 Bas-Saint-Laurent GaspŽsie C™te-Nord Toronto Central
355 245 17 12 65.45579 Bas-Saint-Laurent GaspŽsie C™te-Nord Eastern
461 245 18 12 35.5006 Bas-Saint-Laurent GaspŽsie C™te-Nord Northern
462 245 19 12 18.4704 Bas-Saint-Laurent GaspŽsie C™te-Nord Southern
463 245 20 12 10.77642 Bas-Saint-Laurent GaspŽsie C™te-Nord Winnipeg
471 245 21 12 30.67052 Bas-Saint-Laurent GaspŽsie C™te-Nord Northern
472 245 22 12 15.22657 Bas-Saint-Laurent GaspŽsie C™te-Nord Central
473 245 23 12 11.40646 Bas-Saint-Laurent GaspŽsie C™te-Nord Southern
481 245 24 12 1125.598 Bas-Saint-Laurent GaspŽsie C™te-Nord Northern
482 245 25 12 63.19008 Bas-Saint-Laurent GaspŽsie C™te-Nord Central
483 245 26 12 34.8943 Bas-Saint-Laurent GaspŽsie C™te-Nord Edmonton
484 245 27 12 21.71791 Bas-Saint-Laurent GaspŽsie C™te-Nord Calgary
591 245 28 12 26.49133 Bas-Saint-Laurent GaspŽsie C™te-Nord Northern
592 245 29 12 58.89676 Bas-Saint-Laurent GaspŽsie C™te-Nord Interior
593 245 30 12 150.8005 Bas-Saint-Laurent GaspŽsie C™te-Nord Lower Mainland Vancouver Island
101 351 1 13 2.775017 Northwest / Nord-ouest Avalon Burin Peninsula South Coast
102 351 2 13 2.258598 Northwest / Nord-ouest North
111 351 3 13 .55239 Northwest / Nord-ouest Prince Edward Island / ële-du-Prince-ƒdouard
121 351 4 13 2.014808 Northwest / Nord-ouest Cape Breton and North Shore
122 351 5 13 5.634291 Northwest / Nord-ouest Halifax Southern and Annapolis Valley
131 351 6 13 5.761553 Northwest / Nord-ouest Northern and Eastern
132 351 7 13 2.077498 Northwest / Nord-ouest South Central
241 351 8 13 3.657634 Northwest / Nord-ouest Outaouais Abitibi-TŽmiscamingue
242 351 9 13 .1584681 Northwest / Nord-ouest Nord-du-QuŽbec
243 351 10 13 56.40768 Northwest / Nord-ouest QuŽbec City-Saguenay-Beauce-Estrie
244 351 11 13 66.62792 Northwest / Nord-ouest Greater Montreal
245 351 12 13 6.418757 Northwest / Nord-ouest Bas-Saint-Laurent GaspŽsie C™te-Nord
351 351 13 13 401.9238 Northwest / Nord-ouest Northwest / Nord-ouest
352 351 14 13 3.294342 Northwest / Nord-ouest Northeast / Nord-est
353 351 15 13 12.75216 Northwest / Nord-ouest Southwestern
354 351 16 13 56.42451 Northwest / Nord-ouest Toronto Central
355 351 17 13 17.1852 Northwest / Nord-ouest Eastern
461 351 18 13 4.881728 Northwest / Nord-ouest Northern
462 351 19 13 6.303083 Northwest / Nord-ouest Southern
463 351 20 13 3.888585 Northwest / Nord-ouest Winnipeg
471 351 21 13 3.014523 Northwest / Nord-ouest Northern
472 351 22 13 3.339249 Northwest / Nord-ouest Central
473 351 23 13 3.103698 Northwest / Nord-ouest Southern
481 351 24 13 3.782265 Northwest / Nord-ouest Northern
482 351 25 13 10.88457 Northwest / Nord-ouest Central
483 351 26 13 4.398581 Northwest / Nord-ouest Edmonton
484 351 27 13 3.325668 Northwest / Nord-ouest Calgary
591 351 28 13 3.448621 Northwest / Nord-ouest Northern
592 351 29 13 8.830524 Northwest / Nord-ouest Interior
593 351 30 13 19.89963 Northwest / Nord-ouest Lower Mainland Vancouver Island
101 352 1 14 3.937422 Northeast / Nord-est Avalon Burin Peninsula South Coast
102 352 2 14 2.674769 Northeast / Nord-est North
111 352 3 14 .9635728 Northeast / Nord-est Prince Edward Island / ële-du-Prince-ƒdouard
121 352 4 14 3.881798 Northeast / Nord-est Cape Breton and North Shore
122 352 5 14 13.12467 Northeast / Nord-est Halifax Southern and Annapolis Valley
131 352 6 14 12.37185 Northeast / Nord-est Northern and Eastern
132 352 7 14 5.303051 Northeast / Nord-est South Central
241 352 8 14 27.11772 Northeast / Nord-est Outaouais Abitibi-TŽmiscamingue
242 352 9 14 .2992441 Northeast / Nord-est Nord-du-QuŽbec
243 352 10 14 160.8384 Northeast / Nord-est QuŽbec City-Saguenay-Beauce-Estrie
244 352 11 14 231.8299 Northeast / Nord-est Greater Montreal
245 352 12 14 10.01729 Northeast / Nord-est Bas-Saint-Laurent GaspŽsie C™te-Nord
351 352 13 14 3.390241 Northeast / Nord-est Northwest / Nord-ouest
352 352 14 14 1007.454 Northeast / Nord-est Northeast / Nord-est
353 352 15 14 45.02818 Northeast / Nord-est Southwestern
354 352 16 14 315.4612 Northeast / Nord-est Toronto Central
355 352 17 14 70.37428 Northeast / Nord-est Eastern
461 352 18 14 6.103076 Northeast / Nord-est Northern
462 352 19 14 10.18843 Northeast / Nord-est Southern
463 352 20 14 5.407579 Northeast / Nord-est Winnipeg
471 352 21 14 4.151446 Northeast / Nord-est Northern
472 352 22 14 4.303926 Northeast / Nord-est Central
473 352 23 14 4.62099 Northeast / Nord-est Southern
481 352 24 14 6.043037 Northeast / Nord-est Northern
482 352 25 14 16.95002 Northeast / Nord-est Central
483 352 26 14 7.432728 Northeast / Nord-est Edmonton
484 352 27 14 5.984895 Northeast / Nord-est Calgary
591 352 28 14 6.35173 Northeast / Nord-est Northern
592 352 29 14 10.84609 Northeast / Nord-est Interior
593 352 30 14 40.4454 Northeast / Nord-est Lower Mainland Vancouver Island
101 353 1 15 22.24835 Southwestern Avalon Burin Peninsula South Coast
102 353 2 15 17.00775 Southwestern North
111 353 3 15 6.272955 Southwestern Prince Edward Island / ële-du-Prince-ƒdouard
121 353 4 15 23.50442 Southwestern Cape Breton and North Shore
122 353 5 15 85.66264 Southwestern Halifax Southern and Annapolis Valley
131 353 6 15 68.50211 Southwestern Northern and Eastern
132 353 7 15 29.05367 Southwestern South Central
241 353 8 15 88.14912 Southwestern Outaouais Abitibi-TŽmiscamingue
242 353 9 15 1.456046 Southwestern Nord-du-QuŽbec
243 353 10 15 719.9564 Southwestern QuŽbec City-Saguenay-Beauce-Estrie
244 353 11 15 1468.791 Southwestern Greater Montreal
245 353 12 15 51.62936 Southwestern Bas-Saint-Laurent GaspŽsie C™te-Nord
351 353 13 15 10.0233 Southwestern Northwest / Nord-ouest
352 353 14 15 49.44819 Southwestern Northeast / Nord-est
353 353 15 15 13216.7 Southwestern Southwestern
354 353 16 15 7361.091 Southwestern Toronto Central
355 353 17 15 858.8431 Southwestern Eastern
461 353 18 15 21.04094 Southwestern Northern
462 353 19 15 53.21645 Southwestern Southern
463 353 20 15 25.75329 Southwestern Winnipeg
471 353 21 15 16.87891 Southwestern Northern
472 353 22 15 25.6205 Southwestern Central
473 353 23 15 26.78284 Southwestern Southern
481 353 24 15 24.83824 Southwestern Northern
482 353 25 15 74.91177 Southwestern Central
483 353 26 15 38.14707 Southwestern Edmonton
484 353 27 15 28.89656 Southwestern Calgary
591 353 28 15 22.78758 Southwestern Northern
592 353 29 15 73.07392 Southwestern Interior
593 353 30 15 184.8602 Southwestern Lower Mainland Vancouver Island
101 354 1 16 97.89723 Toronto Central Avalon Burin Peninsula South Coast
102 354 2 16 85.80748 Toronto Central North
111 354 3 16 34.81088 Toronto Central Prince Edward Island / ële-du-Prince-ƒdouard
121 354 4 16 150.9796 Toronto Central Cape Breton and North Shore
122 354 5 16 455.6111 Toronto Central Halifax Southern and Annapolis Valley
131 354 6 16 328.0387 Toronto Central Northern and Eastern
132 354 7 16 168.4833 Toronto Central South Central
241 354 8 16 496.8417 Toronto Central Outaouais Abitibi-TŽmiscamingue
242 354 9 16 8.412653 Toronto Central Nord-du-QuŽbec
243 354 10 16 4462.943 Toronto Central QuŽbec City-Saguenay-Beauce-Estrie
244 354 11 16 10701.2 Toronto Central Greater Montreal
245 354 12 16 249.5874 Toronto Central Bas-Saint-Laurent GaspŽsie C™te-Nord
351 354 13 16 71.99492 Toronto Central Northwest / Nord-ouest
352 354 14 16 272.6575 Toronto Central Northeast / Nord-est
353 354 15 16 7968.849 Toronto Central Southwestern
354 354 16 16 42936.54 Toronto Central Toronto Central
355 354 17 16 5667.453 Toronto Central Eastern
461 354 18 16 125.3827 Toronto Central Northern
462 354 19 16 219.2473 Toronto Central Southern
463 354 20 16 138.5131 Toronto Central Winnipeg
471 354 21 16 86.11398 Toronto Central Northern
472 354 22 16 125.162 Toronto Central Central
473 354 23 16 119.8174 Toronto Central Southern
481 354 24 16 145.4734 Toronto Central Northern
482 354 25 16 348.4755 Toronto Central Central
483 354 26 16 179.0912 Toronto Central Edmonton
484 354 27 16 151.3327 Toronto Central Calgary
591 354 28 16 117.5815 Toronto Central Northern
592 354 29 16 409.7577 Toronto Central Interior
593 354 30 16 870.8445 Toronto Central Lower Mainland Vancouver Island
101 355 1 17 37.43428 Eastern Avalon Burin Peninsula South Coast
102 355 2 17 20.18963 Eastern North
111 355 3 17 11.24138 Eastern Prince Edward Island / ële-du-Prince-ƒdouard
121 355 4 17 45.19809 Eastern Cape Breton and North Shore
122 355 5 17 136.4711 Eastern Halifax Southern and Annapolis Valley
131 355 6 17 120.5869 Eastern Northern and Eastern
132 355 7 17 60.05821 Eastern South Central
241 355 8 17 223.3449 Eastern Outaouais Abitibi-TŽmiscamingue
242 355 9 17 2.115881 Eastern Nord-du-QuŽbec
243 355 10 17 1746.466 Eastern QuŽbec City-Saguenay-Beauce-Estrie
244 355 11 17 6308.604 Eastern Greater Montreal
245 355 12 17 75.10451 Eastern Bas-Saint-Laurent GaspŽsie C™te-Nord
351 355 13 17 17.30135 Eastern Northwest / Nord-ouest
352 355 14 17 69.20871 Eastern Northeast / Nord-est
353 355 15 17 805.212 Eastern Southwestern
354 355 16 17 6973.39 Eastern Toronto Central
355 355 17 17 16938.97 Eastern Eastern
461 355 18 17 38.90133 Eastern Northern
462 355 19 17 60.09554 Eastern Southern
463 355 20 17 34.05951 Eastern Winnipeg
471 355 21 17 27.88605 Eastern Northern
472 355 22 17 33.11785 Eastern Central
473 355 23 17 29.23519 Eastern Southern
481 355 24 17 41.21552 Eastern Northern
482 355 25 17 137.537 Eastern Central
483 355 26 17 50.54342 Eastern Edmonton
484 355 27 17 44.6035 Eastern Calgary
591 355 28 17 41.22184 Eastern Northern
592 355 29 17 109.3557 Eastern Interior
593 355 30 17 311.5916 Eastern Lower Mainland Vancouver Island
101 461 1 18 25.41353 Northern Avalon Burin Peninsula South Coast
102 461 2 18 11.13836 Northern North
111 461 3 18 1.606188 Northern Prince Edward Island / ële-du-Prince-ƒdouard
121 461 4 18 6.41109 Northern Cape Breton and North Shore
122 461 5 18 15.34536 Northern Halifax Southern and Annapolis Valley
131 461 6 18 14.83351 Northern Northern and Eastern
132 461 7 18 5.563128 Northern South Central
241 461 8 18 9.726535 Northern Outaouais Abitibi-TŽmiscamingue
242 461 9 18 1.016843 Northern Nord-du-QuŽbec
243 461 10 18 164.1314 Northern QuŽbec City-Saguenay-Beauce-Estrie
244 461 11 18 164.803 Northern Greater Montreal
245 461 12 18 36.13627 Northern Bas-Saint-Laurent GaspŽsie C™te-Nord
351 461 13 18 5.013043 Northern Northwest / Nord-ouest
352 461 14 18 6.049171 Northern Northeast / Nord-est
353 461 15 18 27.38755 Northern Southwestern
354 461 16 18 128.5294 Northern Toronto Central
355 461 17 18 45.70019 Northern Eastern
461 461 18 18 924.348 Northern Northern
462 461 19 18 13.80875 Northern Southern
463 461 20 18 7.208682 Northern Winnipeg
471 461 21 18 31.46947 Northern Northern
472 461 22 18 11.78665 Northern Central
473 461 23 18 8.529805 Northern Southern
481 461 24 18 22.40192 Northern Northern
482 461 25 18 44.22646 Northern Central
483 461 26 18 30.73291 Northern Edmonton
484 461 27 18 16.97407 Northern Calgary
591 461 28 18 10.01535 Northern Northern
592 461 29 18 40.45037 Northern Interior
593 461 30 18 96.91201 Northern Lower Mainland Vancouver Island
101 462 1 19 8.538907 Southern Avalon Burin Peninsula South Coast
102 462 2 19 7.903565 Southern North
111 462 3 19 1.318279 Southern Prince Edward Island / ële-du-Prince-ƒdouard
121 462 4 19 7.069683 Southern Cape Breton and North Shore
122 462 5 19 15.38066 Southern Halifax Southern and Annapolis Valley
131 462 6 19 14.63214 Southern Northern and Eastern
132 462 7 19 6.190886 Southern South Central
241 462 8 19 12.08237 Southern Outaouais Abitibi-TŽmiscamingue
242 462 9 19 .6091673 Southern Nord-du-QuŽbec
243 462 10 19 133.5031 Southern QuŽbec City-Saguenay-Beauce-Estrie
244 462 11 19 258.1992 Southern Greater Montreal
245 462 12 19 16.92057 Southern Bas-Saint-Laurent GaspŽsie C™te-Nord
351 462 13 19 6.278071 Southern Northwest / Nord-ouest
352 462 14 19 8.434365 Southern Northeast / Nord-est
353 462 15 19 50.42101 Southern Southwestern
354 462 16 19 227.8649 Southern Toronto Central
355 462 17 19 61.20574 Southern Eastern
461 462 18 19 10.45536 Southern Northern
462 462 19 19 1101.597 Southern Southern
463 462 20 19 150.1448 Southern Winnipeg
471 462 21 19 7.218009 Southern Northern
472 462 22 19 25.5031 Southern Central
473 462 23 19 23.78146 Southern Southern
481 462 24 19 11.33735 Southern Northern
482 462 25 19 52.24864 Southern Central
483 462 26 19 23.50263 Southern Edmonton
484 462 27 19 22.2388 Southern Calgary
591 462 28 19 7.136645 Southern Northern
592 462 29 19 37.98737 Southern Interior
593 462 30 19 77.05611 Southern Lower Mainland Vancouver Island
101 463 1 20 4.875043 Winnipeg Avalon Burin Peninsula South Coast
102 463 2 20 4.219216 Winnipeg North
111 463 3 20 .8159451 Winnipeg Prince Edward Island / ële-du-Prince-ƒdouard
121 463 4 20 3.619509 Winnipeg Cape Breton and North Shore
122 463 5 20 8.041543 Winnipeg Halifax Southern and Annapolis Valley
131 463 6 20 6.819589 Winnipeg Northern and Eastern
132 463 7 20 3.255697 Winnipeg South Central
241 463 8 20 6.010235 Winnipeg Outaouais Abitibi-TŽmiscamingue
242 463 9 20 .3352306 Winnipeg Nord-du-QuŽbec
243 463 10 20 83.55806 Winnipeg QuŽbec City-Saguenay-Beauce-Estrie
244 463 11 20 127.2353 Winnipeg Greater Montreal
245 463 12 20 9.976715 Winnipeg Bas-Saint-Laurent GaspŽsie C™te-Nord
351 463 13 20 4.385979 Winnipeg Northwest / Nord-ouest
352 463 14 20 5.420164 Winnipeg Northeast / Nord-est
353 463 15 20 28.03342 Winnipeg Southwestern
354 463 16 20 135.1895 Winnipeg Toronto Central
355 463 17 20 35.57847 Winnipeg Eastern
461 463 18 20 6.14044 Winnipeg Northern
462 463 19 20 140.5106 Winnipeg Southern
463 463 20 20 964.532 Winnipeg Winnipeg
471 463 21 20 4.324467 Winnipeg Northern
472 463 22 20 13.01769 Winnipeg Central
473 463 23 20 11.87799 Winnipeg Southern
481 463 24 20 6.468188 Winnipeg Northern
482 463 25 20 26.56255 Winnipeg Central
483 463 26 20 9.828525 Winnipeg Edmonton
484 463 27 20 10.83133 Winnipeg Calgary
591 463 28 20 5.093457 Winnipeg Northern
592 463 29 20 22.51748 Winnipeg Interior
593 463 30 20 44.48687 Winnipeg Lower Mainland Vancouver Island
101 471 1 21 33.53506 Northern Avalon Burin Peninsula South Coast
102 471 2 21 10.0528 Northern North
111 471 3 21 1.254828 Northern Prince Edward Island / ële-du-Prince-ƒdouard
121 471 4 21 5.648981 Northern Cape Breton and North Shore
122 471 5 21 11.65994 Northern Halifax Southern and Annapolis Valley
131 471 6 21 11.29311 Northern Northern and Eastern
132 471 7 21 4.002041 Northern South Central
241 471 8 21 5.776032 Northern Outaouais Abitibi-TŽmiscamingue
242 471 9 21 1.368774 Northern Nord-du-QuŽbec
243 471 10 21 100.5459 Northern QuŽbec City-Saguenay-Beauce-Estrie
244 471 11 21 133.7093 Northern Greater Montreal
245 471 12 21 33.15078 Northern Bas-Saint-Laurent GaspŽsie C™te-Nord
351 471 13 21 2.467306 Northern Northwest / Nord-ouest
352 471 14 21 3.871812 Northern Northeast / Nord-est
353 471 15 21 21.18006 Northern Southwestern
354 471 16 21 85.82844 Northern Toronto Central
355 471 17 21 31.51087 Northern Eastern
461 471 18 21 29.59949 Northern Northern
462 471 19 21 8.000316 Northern Southern
463 471 20 21 4.508388 Northern Winnipeg
471 471 21 21 842.5121 Northern Northern
472 471 22 21 7.73354 Northern Central
473 471 23 21 7.023914 Northern Southern
481 471 24 21 21.06728 Northern Northern
482 471 25 21 30.37593 Northern Central
483 471 26 21 20.21873 Northern Edmonton
484 471 27 21 12.27556 Northern Calgary
591 471 28 21 5.956503 Northern Northern
592 471 29 21 30.98043 Northern Interior
593 471 30 21 80.98059 Northern Lower Mainland Vancouver Island
101 472 1 22 7.851342 Central Avalon Burin Peninsula South Coast
102 472 2 22 11.46959 Central North
111 472 3 22 .9578941 Central Prince Edward Island / ële-du-Prince-ƒdouard
121 472 4 22 5.161828 Central Cape Breton and North Shore
122 472 5 22 12.53798 Central Halifax Southern and Annapolis Valley
131 472 6 22 9.102368 Central Northern and Eastern
132 472 7 22 4.402053 Central South Central
241 472 8 22 7.660297 Central Outaouais Abitibi-TŽmiscamingue
242 472 9 22 .4706503 Central Nord-du-QuŽbec
243 472 10 22 108.9617 Central QuŽbec City-Saguenay-Beauce-Estrie
244 472 11 22 156.11 Central Greater Montreal
245 472 12 22 13.56089 Central Bas-Saint-Laurent GaspŽsie C™te-Nord
351 472 13 22 3.558928 Central Northwest / Nord-ouest
352 472 14 22 5.527959 Central Northeast / Nord-est
353 472 15 22 20.70117 Central Southwestern
354 472 16 22 146.0875 Central Toronto Central
355 472 17 22 32.12551 Central Eastern
461 472 18 22 12.01089 Central Northern
462 472 19 22 23.70308 Central Southern
463 472 20 22 11.20605 Central Winnipeg
471 472 21 22 9.728902 Central Northern
472 472 22 22 840.0513 Central Central
473 472 23 22 34.55822 Central Southern
481 472 24 22 8.802631 Central Northern
482 472 25 22 78.38708 Central Central
483 472 26 22 21.64158 Central Edmonton
484 472 27 22 28.13311 Central Calgary
591 472 28 22 4.550267 Central Northern
592 472 29 22 46.26098 Central Interior
593 472 30 22 88.79742 Central Lower Mainland Vancouver Island
101 473 1 23 7.127177 Southern Avalon Burin Peninsula South Coast
102 473 2 23 7.644185 Southern North
111 473 3 23 .8285927 Southern Prince Edward Island / ële-du-Prince-ƒdouard
121 473 4 23 3.864083 Southern Cape Breton and North Shore
122 473 5 23 9.506612 Southern Halifax Southern and Annapolis Valley
131 473 6 23 7.873806 Southern Northern and Eastern
132 473 7 23 3.878946 Southern South Central
241 473 8 23 5.405617 Southern Outaouais Abitibi-TŽmiscamingue
242 473 9 23 .4424267 Southern Nord-du-QuŽbec
243 473 10 23 89.17433 Southern QuŽbec City-Saguenay-Beauce-Estrie
244 473 11 23 130.8075 Southern Greater Montreal
245 473 12 23 8.711941 Southern Bas-Saint-Laurent GaspŽsie C™te-Nord
351 473 13 23 3.095412 Southern Northwest / Nord-ouest
352 473 14 23 4.52411 Southern Northeast / Nord-est
353 473 15 23 23.95597 Southern Southwestern
354 473 16 23 127.3534 Southern Toronto Central
355 473 17 23 34.71975 Southern Eastern
461 473 18 23 8.882316 Southern Northern
462 473 19 23 22.26618 Southern Southern
463 473 20 23 11.26651 Southern Winnipeg
471 473 21 23 4.472336 Southern Northern
472 473 22 23 35.58207 Southern Central
473 473 23 23 805.9493 Southern Southern
481 473 24 23 7.025249 Southern Northern
482 473 25 23 58.81934 Southern Central
483 473 26 23 15.75947 Southern Edmonton
484 473 27 23 22.81787 Southern Calgary
591 473 28 23 4.409094 Southern Northern
592 473 29 23 29.22835 Southern Interior
593 473 30 23 65.5959 Southern Lower Mainland Vancouver Island
101 481 1 24 48.30103 Northern Avalon Burin Peninsula South Coast
102 481 2 24 9.341725 Northern North
111 481 3 24 2.133528 Northern Prince Edward Island / ële-du-Prince-ƒdouard
121 481 4 24 11.06717 Northern Cape Breton and North Shore
122 481 5 24 21.20882 Northern Halifax Southern and Annapolis Valley
131 481 6 24 21.19032 Northern Northern and Eastern
132 481 7 24 8.139568 Northern South Central
241 481 8 24 9.662708 Northern Outaouais Abitibi-TŽmiscamingue
242 481 9 24 1.309857 Northern Nord-du-QuŽbec
243 481 10 24 217.8934 Northern QuŽbec City-Saguenay-Beauce-Estrie
244 481 11 24 213.5572 Northern Greater Montreal
245 481 12 24 899.1772 Northern Bas-Saint-Laurent GaspŽsie C™te-Nord
351 481 13 24 4.032549 Northern Northwest / Nord-ouest
352 481 14 24 6.006553 Northern Northeast / Nord-est
353 481 15 24 28.0086 Northern Southwestern
354 481 16 24 131.7634 Northern Toronto Central
355 481 17 24 43.00827 Northern Eastern
461 481 18 24 19.64476 Northern Northern
462 481 19 24 8.643701 Northern Southern
463 481 20 24 5.561165 Northern Winnipeg
471 481 21 24 21.99356 Northern Northern
472 481 22 24 8.373755 Northern Central
473 481 23 24 7.116578 Northern Southern
481 481 24 24 1893.334 Northern Northern
482 481 25 24 33.80735 Northern Central
483 481 26 24 22.79807 Northern Edmonton
484 481 27 24 10.49885 Northern Calgary
591 481 28 24 15.83209 Northern Northern
592 481 29 24 39.81925 Northern Interior
593 481 30 24 87.61278 Northern Lower Mainland Vancouver Island
101 482 1 25 34.21153 Central Avalon Burin Peninsula South Coast
102 482 2 25 52.13347 Central North
111 482 3 25 4.525434 Central Prince Edward Island / ële-du-Prince-ƒdouard
121 482 4 25 18.02439 Central Cape Breton and North Shore
122 482 5 25 48.50028 Central Halifax Southern and Annapolis Valley
131 482 6 25 37.62849 Central Northern and Eastern
132 482 7 25 14.36649 Central South Central
241 482 8 25 23.58872 Central Outaouais Abitibi-TŽmiscamingue
242 482 9 25 2.976583 Central Nord-du-QuŽbec
243 482 10 25 329.9288 Central QuŽbec City-Saguenay-Beauce-Estrie
244 482 11 25 577.7978 Central Greater Montreal
245 482 12 25 59.65551 Central Bas-Saint-Laurent GaspŽsie C™te-Nord
351 482 13 25 9.597894 Central Northwest / Nord-ouest
352 482 14 25 12.81218 Central Northeast / Nord-est
353 482 15 25 83.45638 Central Southwestern
354 482 16 25 400.1313 Central Toronto Central
355 482 17 25 108.4059 Central Eastern
461 482 18 25 48.31634 Central Northern
462 482 19 25 60.5204 Central Southern
463 482 20 25 29.38712 Central Winnipeg
471 482 21 25 32.02713 Central Northern
472 482 22 25 97.80544 Central Central
473 482 23 25 58.41292 Central Southern
481 482 24 25 36.16461 Central Northern
482 482 25 25 3028.684 Central Central
483 482 26 25 203.3887 Central Edmonton
484 482 27 25 584.5018 Central Calgary
591 482 28 25 13.88041 Central Northern
592 482 29 25 303.9925 Central Interior
593 482 30 25 450.7241 Central Lower Mainland Vancouver Island
101 483 1 26 19.22396 Edmonton Avalon Burin Peninsula South Coast
102 483 2 26 130.8592 Edmonton North
111 483 3 26 1.756231 Edmonton Prince Edward Island / ële-du-Prince-ƒdouard
121 483 4 26 9.218931 Edmonton Cape Breton and North Shore
122 483 5 26 19.90881 Edmonton Halifax Southern and Annapolis Valley
131 483 6 26 15.9989 Edmonton Northern and Eastern
132 483 7 26 8.284805 Edmonton South Central
241 483 8 26 10.4999 Edmonton Outaouais Abitibi-TŽmiscamingue
242 483 9 26 2.199534 Edmonton Nord-du-QuŽbec
243 483 10 26 153.9629 Edmonton QuŽbec City-Saguenay-Beauce-Estrie
244 483 11 26 204.8735 Edmonton Greater Montreal
245 483 12 26 28.73839 Edmonton Bas-Saint-Laurent GaspŽsie C™te-Nord
351 483 13 26 5.368289 Edmonton Northwest / Nord-ouest
352 483 14 26 6.162004 Edmonton Northeast / Nord-est
353 483 15 26 30.65779 Edmonton Southwestern
354 483 16 26 161.0889 Edmonton Toronto Central
355 483 17 26 53.67941 Edmonton Eastern
461 483 18 26 21.3414 Edmonton Northern
462 483 19 26 20.49404 Edmonton Southern
463 483 20 26 10.26105 Edmonton Winnipeg
471 483 21 26 21.46279 Edmonton Northern
472 483 22 26 24.37947 Edmonton Central
473 483 23 26 18.68768 Edmonton Southern
481 483 24 26 19.88247 Edmonton Northern
482 483 25 26 168.3514 Edmonton Central
483 483 26 26 1671.835 Edmonton Edmonton
484 483 27 26 59.88659 Edmonton Calgary
591 483 28 26 10.86412 Edmonton Northern
592 483 29 26 162.5335 Edmonton Interior
593 483 30 26 253.4635 Edmonton Lower Mainland Vancouver Island
101 484 1 27 12.31101 Calgary Avalon Burin Peninsula South Coast
102 484 2 27 22.42186 Calgary North
111 484 3 27 1.565311 Calgary Prince Edward Island / ële-du-Prince-ƒdouard
121 484 4 27 7.70603 Calgary Cape Breton and North Shore
122 484 5 27 17.89744 Calgary Halifax Southern and Annapolis Valley
131 484 6 27 15.59225 Calgary Northern and Eastern
132 484 7 27 6.122711 Calgary South Central
241 484 8 27 8.447858 Calgary Outaouais Abitibi-TŽmiscamingue
242 484 9 27 1.203519 Calgary Nord-du-QuŽbec
243 484 10 27 147.2917 Calgary QuŽbec City-Saguenay-Beauce-Estrie
244 484 11 27 178.1268 Calgary Greater Montreal
245 484 12 27 22.70497 Calgary Bas-Saint-Laurent GaspŽsie C™te-Nord
351 484 13 27 3.777186 Calgary Northwest / Nord-ouest
352 484 14 27 5.591542 Calgary Northeast / Nord-est
353 484 15 27 33.87178 Calgary Southwestern
354 484 16 27 212.0008 Calgary Toronto Central
355 484 17 27 37.59299 Calgary Eastern
461 484 18 27 14.93944 Calgary Northern
462 484 19 27 20.97643 Calgary Southern
463 484 20 27 13.05176 Calgary Winnipeg
471 484 21 27 11.79045 Calgary Northern
472 484 22 27 27.24238 Calgary Central
473 484 23 27 25.57312 Calgary Southern
481 484 24 27 10.73487 Calgary Northern
482 484 25 27 608.0811 Calgary Central
483 484 26 27 58.717 Calgary Edmonton
484 484 27 27 1633.96 Calgary Calgary
591 484 28 27 7.349239 Calgary Northern
592 484 29 27 119.2415 Calgary Interior
593 484 30 27 218.2343 Calgary Lower Mainland Vancouver Island
101 591 1 28 10.57566 Northern Avalon Burin Peninsula South Coast
102 591 2 28 3.994545 Northern North
111 591 3 28 2.003623 Northern Prince Edward Island / ële-du-Prince-ƒdouard
121 591 4 28 7.376759 Northern Cape Breton and North Shore
122 591 5 28 14.39435 Northern Halifax Southern and Annapolis Valley
131 591 6 28 22.81239 Northern Northern and Eastern
132 591 7 28 7.22112 Northern South Central
241 591 8 28 10.36204 Northern Outaouais Abitibi-TŽmiscamingue
242 591 9 28 .4138218 Northern Nord-du-QuŽbec
243 591 10 28 254.3451 Northern QuŽbec City-Saguenay-Beauce-Estrie
244 591 11 28 233.5142 Northern Greater Montreal
245 591 12 28 21.38189 Northern Bas-Saint-Laurent GaspŽsie C™te-Nord
351 591 13 28 3.355639 Northern Northwest / Nord-ouest
352 591 14 28 6.55363 Northern Northeast / Nord-est
353 591 15 28 31.46383 Northern Southwestern
354 591 16 28 151.3933 Northern Toronto Central
355 591 17 28 45.39291 Northern Eastern
461 591 18 28 11.08195 Northern Northern
462 591 19 28 7.145632 Northern Southern
463 591 20 28 3.869097 Northern Winnipeg
471 591 21 28 8.058219 Northern Northern
472 591 22 28 4.858578 Northern Central
473 591 23 28 5.274314 Northern Southern
481 591 24 28 17.51082 Northern Northern
482 591 25 28 19.72779 Northern Central
483 591 26 28 8.603446 Northern Edmonton
484 591 27 28 6.297109 Northern Calgary
591 591 28 28 675.1881 Northern Northern
592 591 29 28 16.15246 Northern Interior
593 591 30 28 45.93995 Northern Lower Mainland Vancouver Island
101 592 1 29 36.04596 Interior Avalon Burin Peninsula South Coast
102 592 2 29 56.76657 Interior North
111 592 3 29 4.92405 Interior Prince Edward Island / ële-du-Prince-ƒdouard
121 592 4 29 16.59149 Interior Cape Breton and North Shore
122 592 5 29 44.07739 Interior Halifax Southern and Annapolis Valley
131 592 6 29 43.83048 Interior Northern and Eastern
132 592 7 29 15.1407 Interior South Central
241 592 8 29 24.03453 Interior Outaouais Abitibi-TŽmiscamingue
242 592 9 29 4.767838 Interior Nord-du-QuŽbec
243 592 10 29 362.9677 Interior QuŽbec City-Saguenay-Beauce-Estrie
244 592 11 29 488.7527 Interior Greater Montreal
245 592 12 29 66.57586 Interior Bas-Saint-Laurent GaspŽsie C™te-Nord
351 592 13 29 8.844179 Interior Northwest / Nord-ouest
352 592 14 29 13.73539 Interior Northeast / Nord-est
353 592 15 29 71.22749 Interior Southwestern
354 592 16 29 365.3495 Interior Toronto Central
355 592 17 29 107.0861 Interior Eastern
461 592 18 29 50.03386 Interior Northern
462 592 19 29 33.64634 Interior Southern
463 592 20 29 18.9832 Interior Winnipeg
471 592 21 29 34.12146 Interior Northern
472 592 22 29 37.73019 Interior Central
473 592 23 29 35.10437 Interior Southern
481 592 24 29 38.49725 Interior Northern
482 592 25 29 370.0816 Interior Central
483 592 26 29 162.7587 Interior Edmonton
484 592 27 29 130.829 Interior Calgary
591 592 28 29 19.06726 Interior Northern
592 592 29 29 5302.896 Interior Interior
593 592 30 29 1242.887 Interior Lower Mainland Vancouver Island
101 593 1 30 98.2934 Lower Mainland Vancouver Island Avalon Burin Peninsula South Coast
102 593 2 30 97.83615 Lower Mainland Vancouver Island North
111 593 3 30 12.79496 Lower Mainland Vancouver Island Prince Edward Island / ële-du-Prince-ƒdouard
121 593 4 30 62.59917 Lower Mainland Vancouver Island Cape Breton and North Shore
122 593 5 30 124.0988 Lower Mainland Vancouver Island Halifax Southern and Annapolis Valley
131 593 6 30 126.8411 Lower Mainland Vancouver Island Northern and Eastern
132 593 7 30 42.59537 Lower Mainland Vancouver Island South Central
241 593 8 30 59.29781 Lower Mainland Vancouver Island Outaouais Abitibi-TŽmiscamingue
242 593 9 30 13.83466 Lower Mainland Vancouver Island Nord-du-QuŽbec
243 593 10 30 952.9313 Lower Mainland Vancouver Island QuŽbec City-Saguenay-Beauce-Estrie
244 593 11 30 1191.689 Lower Mainland Vancouver Island Greater Montreal
245 593 12 30 193.322 Lower Mainland Vancouver Island Bas-Saint-Laurent GaspŽsie C™te-Nord
351 593 13 30 23.45112 Lower Mainland Vancouver Island Northwest / Nord-ouest
352 593 14 30 34.50972 Lower Mainland Vancouver Island Northeast / Nord-est
353 593 15 30 209.7335 Lower Mainland Vancouver Island Southwestern
354 593 16 30 809.6351 Lower Mainland Vancouver Island Toronto Central
355 593 17 30 250.6458 Lower Mainland Vancouver Island Eastern
461 593 18 30 82.52353 Lower Mainland Vancouver Island Northern
462 593 19 30 98.89541 Lower Mainland Vancouver Island Southern
463 593 20 30 40.59354 Lower Mainland Vancouver Island Winnipeg
471 593 21 30 84.47948 Lower Mainland Vancouver Island Northern
472 593 22 30 83.28656 Lower Mainland Vancouver Island Central
473 593 23 30 59.04365 Lower Mainland Vancouver Island Southern
481 593 24 30 96.88494 Lower Mainland Vancouver Island Northern
482 593 25 30 534.8976 Lower Mainland Vancouver Island Central
483 593 26 30 304.2794 Lower Mainland Vancouver Island Edmonton
484 593 27 30 216.2159 Lower Mainland Vancouver Island Calgary
591 593 28 30 48.73101 Lower Mainland Vancouver Island Northern
592 593 29 30 1143.334 Lower Mainland Vancouver Island Interior
593 593 30 30 7237.763 Lower Mainland Vancouver Island Lower Mainland Vancouver Island
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>Canadian Trade Map</title>
<style>
@import url(//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css);
@import url(//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.5/leaflet.css);
/*@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700|Roboto|Droid+Sans|Droid+Sans+Mono);*/
body {
text-align: center;
font-family: 'Lucida Console', sans-serif;
font-weight: 300;
width: 960px;
margin: 0 auto;
}
.container {
width: 960px;
display: inline-block;
text-align: center;
}
#stats {
text-align: left;
width: 960px;
/* height: 170px;*/
display: inline-block;
}
#map, #footer {
width: 960px;
height: 500px;
display: inline-block;
}
svg {
position: relative;
}
path {
fill: #444;
fill-opacity: 0;
stroke: #fff;
stroke-width: 1.5px;
}
path:hover {
fill: #444;
fill-opacity: 0.1;
stroke: #fff;
cursor: default;
}
</style>
<body>
<h1>Interactive Canadian Trade Map</h1>
<div class="container">
<div id="map"></div>
<div id="stats">
<h2>Name: <span id="nameger">(hover over a region to display data)</span></h2>
<h3>Total Trade: <span id="total"></span></h2>
<h3>Imports: <span id="imports"></span></h2>
<h3>Exports: <span id="exports"></span></h2>
</div>
<div id="footer">
<h4><a href="flows.csv">Link to data</a></h4>
</div>
</div>
<script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.5/leaflet.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/topojson/1.6.19/topojson.min.js"></script>
<script>
var pr = {
'10': 'NFLD',
'11': 'PEI',
'12': 'NS',
'13': 'NB',
'24': 'QC',
'35': 'ON',
'46': 'MB',
'47': 'SK',
'48': 'AB',
'59': 'BC'
};
var map = new L.Map("map", {center: [55,-92], zoom: 4})
.addLayer(new L.TileLayer("http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"));
var svg = d3.select(map.getPanes().overlayPane).append("svg"),
g = svg.append("g").attr("class", "leaflet-zoom-hide");
d3.json("can.json", function(error, can) {
if (error) throw error;
features=topojson.feature(can, can.objects.ers).features;
var transform = d3.geo.transform({point: projectPoint}),
path = d3.geo.path().projection(transform),
nnodes = [];
for (var f in features) {
nnodes.push({
'id': features[f].id,
'name': features[f].properties.name
})
}
d3.csv("flows.csv", function(error, data) {
csvReady(can, data, nnodes);
});
var feature = g.selectAll(".ers")
.data(features) //topojson.feature(can, can.objects.ers).features)
.enter().append("path")
.attr("class", function(d) {
if (d.properties.id===101) { d.properties.name="WTF"; }
return "ers";
})
.attr("d", path)
.on('mouseover', info);
map.on("viewreset", reset);
reset();
// Reposition the SVG to cover the features.
function reset() {
var bounds = path.bounds(topojson.feature(can, can.objects.ers)),
topLeft = bounds[0],
bottomRight = bounds[1];
svg .attr("width", bottomRight[0] - topLeft[0])
.attr("height", bottomRight[1] - topLeft[1])
.style("left", topLeft[0] + "px")
.style("top", topLeft[1] + "px");
g .attr("transform", "translate(" + -topLeft[0] + "," + -topLeft[1] + ")");
feature.attr("d", path);
}
function info(d) {
var formatNumber = d3.format(",.1f");
console.log(document.getElementById("nameger").innerHTML=d.properties.name + ' (' + pr[d.properties.prid] + ')');
console.log(document.getElementById("total").innerHTML=formatNumber(d.total) + 'M');
console.log(document.getElementById("imports").innerHTML=formatNumber(d.imports) + 'M');
console.log(document.getElementById("exports").innerHTML=formatNumber(d.exports) + 'M');
}
// Use Leaflet to implement a D3 geometric transformation.
function projectPoint(x, y) {
var point = map.latLngToLayerPoint(new L.LatLng(y, x));
this.stream.point(point.x, point.y);
}
function csvReady(can, data, nnodes) {
var eedges=[];
var max=0,
min=Number.MAX_VALUE;
for (var i in data) {
var edge=data[i];
var flow=parseFloat(edge.value,10);
// if (flow > 0 && edge.o!==edge.d) {
eedges.push({
'source': edge.o-1, // id prob needs to be a number.
'target': edge.d-1,
'value': flow
// 'line': linkArc(nnodes[edge.o-1], nnodes[edge.d-1]) // could try to transition this.
});
min = Math.min(min, flow);
max = Math.max(max, flow);
}
var new_scale_w = d3.scale.linear().domain([min, max]).range([0, 2]);
var new_scale_v = d3.scale.log().domain([min, max]).range([0, 1]);
features.forEach(function(d,i) {
d.imports = aggregate(eedges, i, "target");
d.exports = aggregate(eedges, i, "source");
d.withinER = aggregate(eedges, i, "within");
d.total = d.imports + d.exports + d.withinER;
});
function aggregate(edges, erNode, direction) {
var result = 0;
edges.forEach(function(d) {
if (direction === "within" && (d["source"] === erNode && d["target"] === erNode)) {
result += d.value;
}
else if (d[direction] === erNode && (d["source"] !== d["target"])) {
result += d.value;
}
});
return result;
}
}
});
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment