[ Launch: Weather stations pseudo heatmap (using topoJSON; colored by Voronoi; simplified land shapes; quantized) ] 5131096 by poezn
[ Launch: Weather stations pseudo heatmap (using topoJSON) ] 5130752 by poezn
[ Launch: Weather stations pseudo heatmap (using topoJSON) ] 4759487 by poezn
[ Launch: Weather stations pseudo heatmap ] 4758743 by poezn
[ Launch: Weather stations pseudo heatmap ] 4746489 by poezn
[ Launch: Weather stations pseudo heatmap ] 4744710 by poezn
[ Launch: Weather stations ] 4743404 by poezn
-
-
Save poezn/5131096 to your computer and use it in GitHub Desktop.
Weather stations pseudo heatmap (using topoJSON; colored by Voronoi; simplified land shapes; quantized)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"description":"Weather stations pseudo heatmap (using topoJSON; colored by Voronoi; simplified land shapes; quantized)","endpoint":"","display":"canvas","public":true,"require":[{"name":"TopoJSON","url":"http://d3js.org/topojson.v0.min.js"},{"name":"TopoJSON","url":"http://d3js.org/topojson.v0.min.js"}],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"stations.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"countries.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"stations_1910.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"countries_simplified.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"stations.geojson":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "Topology", | |
"transform": { | |
"scale": [0.03600360036003601, 0.017353701370137014], | |
"translate": [-180, -90] | |
}, | |
"objects": { | |
"world": { | |
"type": "GeometryCollection", | |
"geometries": [{ | |
"type": "Polygon", | |
"id": 2, | |
"arcs": [ | |
[0] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 3, | |
"arcs": [ | |
[1] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 4, | |
"arcs": [ | |
[2] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 5, | |
"arcs": [ | |
[3] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 6, | |
"arcs": [ | |
[4] | |
] | |
}, { | |
"type": "MultiPolygon", | |
"id": 7, | |
"arcs": [ | |
[ | |
[5] | |
], | |
[ | |
[6] | |
] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 8, | |
"arcs": [ | |
[7] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 10, | |
"arcs": [ | |
[8] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 11, | |
"arcs": [ | |
[9] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 12, | |
"arcs": [ | |
[10] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 13, | |
"arcs": [ | |
[11] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 20, | |
"arcs": [ | |
[12] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 21, | |
"arcs": [ | |
[13] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 27, | |
"arcs": [ | |
[14] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 31, | |
"arcs": [ | |
[15] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 34, | |
"arcs": [ | |
[16] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 38, | |
"arcs": [ | |
[17] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 39, | |
"arcs": [ | |
[18] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 40, | |
"arcs": [ | |
[19] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 41, | |
"arcs": [ | |
[20] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 42, | |
"arcs": [ | |
[21] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 43, | |
"arcs": [ | |
[22] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 44, | |
"arcs": [ | |
[23] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 47, | |
"arcs": [ | |
[24] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 48, | |
"arcs": [ | |
[25] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 49, | |
"arcs": [ | |
[26] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 51, | |
"arcs": [ | |
[27] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 54, | |
"arcs": [ | |
[28] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 55, | |
"arcs": [ | |
[29] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 61, | |
"arcs": [ | |
[30] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 63, | |
"arcs": [ | |
[31] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 69, | |
"arcs": [ | |
[32] | |
] | |
}, { | |
"type": "MultiPolygon", | |
"id": 71, | |
"arcs": [ | |
[ | |
[33] | |
], | |
[ | |
[34] | |
] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 73, | |
"arcs": [ | |
[35] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 77, | |
"arcs": [ | |
[36] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 79, | |
"arcs": [ | |
[37] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 80, | |
"arcs": [ | |
[38] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 83, | |
"arcs": [ | |
[39] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 88, | |
"arcs": [ | |
[40] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 89, | |
"arcs": [ | |
[41] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 90, | |
"arcs": [ | |
[42] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 91, | |
"arcs": [ | |
[43] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 94, | |
"arcs": [ | |
[44] | |
] | |
}, { | |
"type": "MultiPolygon", | |
"id": 95, | |
"arcs": [ | |
[ | |
[45] | |
], | |
[ | |
[46] | |
] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 96, | |
"arcs": [ | |
[47] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 99, | |
"arcs": [ | |
[48] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 100, | |
"arcs": [ | |
[49] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 102, | |
"arcs": [ | |
[50] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 103, | |
"arcs": [ | |
[51] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 107, | |
"arcs": [ | |
[52] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 108, | |
"arcs": [ | |
[53] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 109, | |
"arcs": [ | |
[54] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 110, | |
"arcs": [ | |
[55] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 112, | |
"arcs": [ | |
[56], | |
[57] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 119, | |
"arcs": [ | |
[58] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 120, | |
"arcs": [ | |
[59] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 121, | |
"arcs": [ | |
[60] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 123, | |
"arcs": [ | |
[61] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 124, | |
"arcs": [ | |
[62] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 125, | |
"arcs": [ | |
[63] | |
] | |
}, { | |
"type": "Polygon", | |
"id": 126, | |
"arcs": [ | |
[64] | |
] | |
}] | |
} | |
}, | |
"arcs": [ | |
[ | |
[3745, 688], | |
[50, -114], | |
[-300, -35], | |
[250, 149] | |
], | |
[ | |
[1632, 950], | |
[69, 1], | |
[-108, -10], | |
[39, 9] | |
], | |
[ | |
[1512, 951], | |
[42, -22], | |
[-90, 24], | |
[48, -2] | |
], | |
[ | |
[2250, 1041], | |
[77, -34], | |
[-170, 36], | |
[93, -2] | |
], | |
[ | |
[3098, 1097], | |
[-73, -89], | |
[-109, 48], | |
[81, 27], | |
[51, 134], | |
[50, -120] | |
], | |
[ | |
[3251, 1406], | |
[-76, -136], | |
[107, -159], | |
[28, -172], | |
[-272, -169], | |
[-184, -5], | |
[99, -69], | |
[-121, -73], | |
[550, -233], | |
[824, 166], | |
[-197, 51], | |
[-4, 64], | |
[507, 186], | |
[58, 114], | |
[238, 127], | |
[944, 27], | |
[188, 113], | |
[132, -73], | |
[442, 228], | |
[191, -123], | |
[207, 1], | |
[22, -74], | |
[-48, -152], | |
[54, -24], | |
[111, 138], | |
[392, 211], | |
[216, -67], | |
[196, 105], | |
[93, -79], | |
[206, 61], | |
[173, -81], | |
[424, 113], | |
[66, -95], | |
[223, 3], | |
[714, -276], | |
[-212, -262], | |
[95, -144], | |
[-145, -24], | |
[-55, -103], | |
[267, -166], | |
[295, -51], | |
[0, -304], | |
[-9999, 0], | |
[26, 337], | |
[998, -52], | |
[-291, 78], | |
[20, 95], | |
[-110, 54], | |
[289, 44], | |
[-247, 74], | |
[-85, 125], | |
[196, -29], | |
[145, 53], | |
[-3, 63], | |
[305, 62], | |
[975, -33], | |
[-99, 130], | |
[800, -72], | |
[209, 80], | |
[-11, 297], | |
[134, 100] | |
], | |
[ | |
[3351, 1481], | |
[59, 44], | |
[-39, -36], | |
[-20, -8] | |
], | |
[ | |
[3117, 2083], | |
[75, -49], | |
[-116, -46], | |
[-151, 153], | |
[99, -71], | |
[49, 89], | |
[44, -76] | |
], | |
[ | |
[6951, 2321], | |
[-43, -4], | |
[6, 67], | |
[37, -63] | |
], | |
[ | |
[9037, 2835], | |
[81, -5], | |
[-11, -134], | |
[-52, -20], | |
[-18, 159] | |
], | |
[ | |
[9805, 2828], | |
[34, -25], | |
[-33, -144], | |
[-104, -161], | |
[-74, 24], | |
[177, 306] | |
], | |
[ | |
[9849, 3102], | |
[108, -88], | |
[-91, -231], | |
[-72, 413], | |
[55, -94] | |
], | |
[ | |
[6389, 4405], | |
[-82, -657], | |
[-85, -2], | |
[12, 505], | |
[131, 241], | |
[24, -87] | |
], | |
[ | |
[8986, 4393], | |
[266, -710], | |
[-6, -321], | |
[-81, -333], | |
[-102, -93], | |
[-158, 59], | |
[-67, 209], | |
[-39, -50], | |
[28, 136], | |
[-51, -115], | |
[-129, 196], | |
[-370, -206], | |
[-83, 50], | |
[18, 149], | |
[-65, 317], | |
[23, 251], | |
[186, 119], | |
[134, 315], | |
[109, -43], | |
[76, 221], | |
[115, -42], | |
[-27, -181], | |
[130, -156], | |
[64, 406], | |
[29, -178] | |
], | |
[ | |
[8274, 4719], | |
[34, -35], | |
[-67, -19], | |
[33, 54] | |
], | |
[ | |
[8016, 4795], | |
[197, -92], | |
[-287, 88], | |
[90, 4] | |
], | |
[ | |
[9220, 4870], | |
[-101, -15], | |
[89, 91], | |
[12, -76] | |
], | |
[ | |
[8725, 5119], | |
[36, -127], | |
[80, 96], | |
[174, -125], | |
[169, -387], | |
[-165, 170], | |
[-58, -98], | |
[-140, 53], | |
[9, 174], | |
[-137, 74], | |
[-28, 74], | |
[47, 35], | |
[-88, 74], | |
[101, -13] | |
], | |
[ | |
[8478, 5268], | |
[-141, -69], | |
[21, -94], | |
[67, 45], | |
[-51, -74], | |
[46, -198], | |
[-61, 156], | |
[-45, -158], | |
[19, 342], | |
[145, 50] | |
], | |
[ | |
[8573, 5251], | |
[-16, -117], | |
[-5, 177], | |
[21, -60] | |
], | |
[ | |
[7938, 4848], | |
[-90, 95], | |
[-202, 558], | |
[237, -309], | |
[63, -183], | |
[-8, -161] | |
], | |
[ | |
[8273, 5291], | |
[31, -53], | |
[-79, -284], | |
[-165, 63], | |
[-31, 142], | |
[16, 142], | |
[92, 63], | |
[104, 221], | |
[68, -88], | |
[-52, -125], | |
[16, -81] | |
], | |
[ | |
[8509, 5671], | |
[-27, -164], | |
[-50, 130], | |
[-47, -37], | |
[97, 148], | |
[27, -77] | |
], | |
[ | |
[7255, 5543], | |
[-38, 32], | |
[8, 177], | |
[30, -209] | |
], | |
[ | |
[8290, 5723], | |
[-36, -55], | |
[64, 173], | |
[-28, -118] | |
], | |
[ | |
[8384, 5871], | |
[35, -18], | |
[-31, -66], | |
[-4, 84] | |
], | |
[ | |
[8485, 5887], | |
[-20, -117], | |
[-14, 139], | |
[34, -22] | |
], | |
[ | |
[8369, 6252], | |
[33, -81], | |
[-22, -160], | |
[65, -103], | |
[-111, 140], | |
[35, 204] | |
], | |
[ | |
[2983, 6331], | |
[118, -73], | |
[-170, -15], | |
[59, 18], | |
[-7, 70] | |
], | |
[ | |
[8064, 6262], | |
[-48, 40], | |
[60, 41], | |
[-12, -81] | |
], | |
[ | |
[2734, 6480], | |
[52, 18], | |
[153, -143], | |
[-100, -25], | |
[-105, 150] | |
], | |
[ | |
[8365, 6499], | |
[-30, 44], | |
[39, 100], | |
[-9, -144] | |
], | |
[ | |
[5430, 7389], | |
[-12, -93], | |
[-74, 57], | |
[86, 36] | |
], | |
[ | |
[8638, 7137], | |
[27, -41], | |
[-50, -100], | |
[-22, 108], | |
[45, 33] | |
], | |
[ | |
[8641, 7140], | |
[126, 93], | |
[159, 337], | |
[-11, -244], | |
[-20, -115], | |
[-124, -97], | |
[-20, 65], | |
[-110, -39] | |
], | |
[ | |
[8996, 7731], | |
[45, -52], | |
[-155, -98], | |
[56, 230], | |
[54, -80] | |
], | |
[ | |
[3440, 8107], | |
[-19, -51], | |
[93, -32], | |
[11, -150], | |
[-172, 55], | |
[107, 229], | |
[-20, -51] | |
], | |
[ | |
[8989, 8110], | |
[28, -102], | |
[-41, 19], | |
[9, -183], | |
[-39, -9], | |
[3, 475], | |
[40, -200] | |
], | |
[ | |
[4810, 8197], | |
[-88, -25], | |
[8, 119], | |
[82, 74], | |
[30, -36], | |
[-32, -132] | |
], | |
[ | |
[4916, 8565], | |
[-30, -63], | |
[59, 8], | |
[-33, -99], | |
[134, -186], | |
[-7, -84], | |
[-186, -76], | |
[51, 84], | |
[-51, 33], | |
[19, 86], | |
[45, 29], | |
[-89, 161], | |
[32, 106], | |
[56, 1] | |
], | |
[ | |
[2634, 8969], | |
[140, -111], | |
[-198, -11], | |
[58, 122] | |
], | |
[ | |
[4596, 9015], | |
[25, -76], | |
[-140, -94], | |
[-114, 26], | |
[27, 26], | |
[-60, 28], | |
[48, 28], | |
[-59, 14], | |
[273, 48] | |
], | |
[ | |
[2892, 9055], | |
[-38, 25], | |
[59, 25], | |
[-21, -50] | |
], | |
[ | |
[138, 9023], | |
[142, -35], | |
[-85, -100], | |
[-159, 107], | |
[-36, -65], | |
[0, 230], | |
[138, -137] | |
], | |
[ | |
[36, 9271], | |
[-36, 36], | |
[67, -14], | |
[-31, -22] | |
], | |
[ | |
[2484, 9190], | |
[89, -132], | |
[51, 155], | |
[80, -13], | |
[38, -119], | |
[-330, -321], | |
[-43, -177], | |
[66, -108], | |
[279, -111], | |
[65, -227], | |
[37, 78], | |
[-34, 121], | |
[91, 107], | |
[-55, 131], | |
[33, 61], | |
[-21, 142], | |
[118, 7], | |
[118, -80], | |
[54, -164], | |
[85, 123], | |
[78, -231], | |
[124, -98], | |
[45, -143], | |
[-120, -110], | |
[-177, -1], | |
[-131, -196], | |
[168, 139], | |
[16, -173], | |
[110, 45], | |
[20, -63], | |
[-154, -137], | |
[-23, 53], | |
[49, 48], | |
[-76, -9], | |
[-98, -122], | |
[20, -80], | |
[-155, -123], | |
[-11, -132], | |
[-12, 112], | |
[18, -208], | |
[-156, -237], | |
[26, -359], | |
[-103, 282], | |
[-271, -22], | |
[-76, -81], | |
[-35, -338], | |
[43, -180], | |
[119, -35], | |
[49, 132], | |
[89, 31], | |
[-52, -326], | |
[153, -35], | |
[-11, -240], | |
[66, -134], | |
[48, -3], | |
[-33, -87], | |
[-132, 156], | |
[-51, 194], | |
[-445, 288], | |
[-313, 778], | |
[148, -496], | |
[-76, 89], | |
[-142, 479], | |
[-92, 90], | |
[-105, 329], | |
[-8, 453], | |
[58, -62], | |
[-7, 109], | |
[-128, 106], | |
[-184, 420], | |
[-362, 159], | |
[-128, -99], | |
[30, 122], | |
[-216, -305], | |
[-177, -91], | |
[215, 260], | |
[-137, -14], | |
[-115, 163], | |
[148, 189], | |
[-203, 51], | |
[178, 26], | |
[-141, 129], | |
[283, 173], | |
[558, -142], | |
[232, 91], | |
[535, -178], | |
[76, 81], | |
[130, -66], | |
[105, 54], | |
[43, -75], | |
[53, 103], | |
[-62, 59], | |
[35, 105], | |
[129, -140] | |
], | |
[ | |
[2803, 5688], | |
[62, -4], | |
[141, 218], | |
[2, -193], | |
[48, 178], | |
[49, -93], | |
[175, 9], | |
[132, -273], | |
[162, -102], | |
[25, -247], | |
[162, -150], | |
[128, -11], | |
[121, -131], | |
[24, -126], | |
[-109, -330], | |
[-63, -511], | |
[-186, -170], | |
[-35, -219], | |
[-136, -329], | |
[-129, 28], | |
[46, -173], | |
[-154, -111], | |
[-12, -127], | |
[-66, -2], | |
[46, -86], | |
[-106, -172], | |
[36, -149], | |
[-87, -150], | |
[27, -93], | |
[-79, -85], | |
[-110, 90], | |
[-18, 207], | |
[41, 100], | |
[-42, 17], | |
[81, 245], | |
[-45, -48], | |
[116, 1352], | |
[-162, 295], | |
[-146, 490], | |
[41, 201], | |
[-32, 92], | |
[106, 283], | |
[-30, 257], | |
[-24, 23] | |
], | |
[ | |
[1828, 9399], | |
[166, -84], | |
[-6, 82], | |
[52, 0], | |
[151, -202], | |
[-339, -60], | |
[-112, 82], | |
[137, 24], | |
[-194, 68], | |
[145, 90] | |
], | |
[ | |
[2595, 9401], | |
[118, 35], | |
[43, -98], | |
[236, -29], | |
[147, -136], | |
[-51, -27], | |
[193, -107], | |
[-57, -108], | |
[-114, 73], | |
[93, -165], | |
[-114, 20], | |
[72, -105], | |
[-241, 159], | |
[-79, -26], | |
[-6, 62], | |
[110, 9], | |
[28, 130], | |
[-167, 141], | |
[-304, 61], | |
[13, 110], | |
[80, 1] | |
], | |
[ | |
[2212, 9441], | |
[82, -5], | |
[19, -121], | |
[-161, 49], | |
[60, 77] | |
], | |
[ | |
[2410, 9379], | |
[-61, -41], | |
[-17, 80], | |
[153, 24], | |
[-75, -63] | |
], | |
[ | |
[1653, 9300], | |
[-152, 27], | |
[56, 104], | |
[-28, 36], | |
[262, -47], | |
[-138, -120] | |
], | |
[ | |
[2263, 9607], | |
[10, -99], | |
[-121, 32], | |
[111, 67] | |
], | |
[ | |
[1993, 9577], | |
[70, -42], | |
[-333, -15], | |
[64, 73], | |
[199, -16] | |
], | |
[ | |
[6597, 9261], | |
[-169, 75], | |
[116, 176], | |
[367, 85], | |
[-288, -129], | |
[-85, -112], | |
[59, -95] | |
], | |
[ | |
[2369, 9628], | |
[413, -125], | |
[-276, -23], | |
[-205, 128], | |
[68, 20] | |
], | |
[ | |
[7970, 9621], | |
[199, -65], | |
[-131, -96], | |
[488, -35], | |
[120, -160], | |
[238, 40], | |
[-20, 54], | |
[37, 25], | |
[808, -240], | |
[24, 81], | |
[147, -13], | |
[119, -52], | |
[0, -230], | |
[-72, -21], | |
[50, -133], | |
[-247, -140], | |
[-189, 0], | |
[-42, -94], | |
[33, -36], | |
[-30, -159], | |
[-148, -222], | |
[-24, 332], | |
[237, 333], | |
[-121, -115], | |
[-94, 51], | |
[-70, -97], | |
[23, -35], | |
[-356, -6], | |
[-197, -249], | |
[133, -31], | |
[41, -112], | |
[-88, -342], | |
[-297, -377], | |
[44, -270], | |
[-73, -40], | |
[-32, 298], | |
[-119, -38], | |
[17, 118], | |
[-100, -100], | |
[24, -101], | |
[95, 0], | |
[-89, -147], | |
[77, -185], | |
[-6, -200], | |
[-161, -313], | |
[-151, -141], | |
[-54, 79], | |
[-73, -113], | |
[96, -365], | |
[-4, -101], | |
[-112, -177], | |
[-141, 277], | |
[-24, -240], | |
[104, -214], | |
[35, -244], | |
[-79, 85], | |
[-85, 290], | |
[-32, 526], | |
[-83, -51], | |
[-77, 388], | |
[-123, -74], | |
[-185, -322], | |
[-13, -319], | |
[-64, -138], | |
[-137, 771], | |
[-60, -27], | |
[-113, 262], | |
[-250, 18], | |
[-25, 81], | |
[-138, 41], | |
[-39, 132], | |
[-60, -10], | |
[107, -343], | |
[126, 137], | |
[14, -124], | |
[82, -112], | |
[-126, -293], | |
[-327, -264], | |
[-23, 238], | |
[-215, 734], | |
[-28, -107], | |
[-41, 127], | |
[140, -648], | |
[145, -396], | |
[53, -75], | |
[181, 92], | |
[-2, -80], | |
[-92, -370], | |
[-237, -513], | |
[44, -577], | |
[-167, -293], | |
[23, -226], | |
[-84, -117], | |
[-11, -174], | |
[-178, -299], | |
[-206, -11], | |
[-182, 925], | |
[52, 423], | |
[-136, 555], | |
[17, 279], | |
[-97, 30], | |
[-44, 116], | |
[-370, -83], | |
[-211, 423], | |
[-10, 560], | |
[306, 799], | |
[429, 92], | |
[44, -26], | |
[-21, -179], | |
[243, -203], | |
[68, 148], | |
[340, -108], | |
[66, 328], | |
[-236, 0], | |
[-41, 162], | |
[204, 147], | |
[134, -62], | |
[93, 59], | |
[-139, 189], | |
[68, 116], | |
[-116, -57], | |
[38, -67], | |
[-68, -43], | |
[-40, 56], | |
[24, 43], | |
[-71, 29], | |
[-85, -231], | |
[31, -88], | |
[-172, -46], | |
[40, -149], | |
[-43, -72], | |
[-82, 306], | |
[-178, 231], | |
[-15, -95], | |
[163, -226], | |
[-44, 16], | |
[-22, -141], | |
[-19, 118], | |
[-181, 249], | |
[-161, -74], | |
[-146, -369], | |
[-187, 11], | |
[-14, 355], | |
[223, 58], | |
[5, 114], | |
[-95, 154], | |
[83, -2], | |
[-9, 65], | |
[280, 216], | |
[11, 207], | |
[57, 35], | |
[-26, -130], | |
[36, -84], | |
[242, 24], | |
[53, 172], | |
[71, -22], | |
[-22, 124], | |
[161, 49], | |
[-217, 40], | |
[6, 142], | |
[107, 111], | |
[-89, 35], | |
[-120, -171], | |
[-21, -82], | |
[47, -72], | |
[-81, -229], | |
[-82, -43], | |
[-71, 237], | |
[-131, -51], | |
[-18, 195], | |
[271, 336], | |
[272, 186], | |
[458, -206], | |
[-74, -84], | |
[-144, 36], | |
[106, -160], | |
[5, 75], | |
[188, 53], | |
[-14, 144], | |
[78, -18], | |
[2, -92], | |
[205, 127], | |
[173, -34], | |
[17, 91], | |
[221, -101], | |
[-51, 169], | |
[70, 104], | |
[94, -4], | |
[-20, -78], | |
[50, -173], | |
[-66, -121], | |
[32, -8], | |
[73, 91], | |
[-55, 213], | |
[44, 80], | |
[47, -97], | |
[143, 34], | |
[-28, 110], | |
[175, 16], | |
[10, 68], | |
[550, 107] | |
], | |
[ | |
[6363, 7565], | |
[36, -60], | |
[-33, -154], | |
[128, -35], | |
[-31, 177], | |
[56, 53], | |
[-28, 67], | |
[-25, -57], | |
[-70, 200], | |
[76, 38], | |
[0, 92], | |
[-176, -130], | |
[67, -191] | |
], | |
[ | |
[7917, 9698], | |
[-156, -22], | |
[73, 82], | |
[83, -60] | |
], | |
[ | |
[5506, 9778], | |
[91, -42], | |
[-156, -126], | |
[-152, 166], | |
[217, 2] | |
], | |
[ | |
[5706, 9819], | |
[54, -20], | |
[-279, 15], | |
[225, 5] | |
], | |
[ | |
[7775, 9731], | |
[-243, 84], | |
[132, 53], | |
[111, -137] | |
], | |
[ | |
[2582, 9776], | |
[34, -19], | |
[-139, -64], | |
[-164, 112], | |
[119, 63], | |
[150, -92] | |
], | |
[ | |
[3096, 9975], | |
[185, -28], | |
[-418, -190], | |
[42, -46], | |
[-144, -136], | |
[-248, 17], | |
[35, 83], | |
[91, -21], | |
[-83, 48], | |
[79, 56], | |
[-51, 52], | |
[142, 12], | |
[-271, 83], | |
[641, 70] | |
], | |
[ | |
[4246, 9999], | |
[174, -46], | |
[-307, -31], | |
[547, -52], | |
[-218, -64], | |
[65, -3], | |
[-55, -79], | |
[34, -102], | |
[-89, -21], | |
[64, -134], | |
[-151, -113], | |
[85, -96], | |
[-105, 44], | |
[-23, -70], | |
[111, -5], | |
[-485, -269], | |
[-99, -309], | |
[-136, 44], | |
[-93, 159], | |
[-65, 205], | |
[86, 158], | |
[-106, -18], | |
[9, 70], | |
[83, -15], | |
[-124, 63], | |
[31, 53], | |
[-107, 169], | |
[-276, 32], | |
[-80, 54], | |
[129, 21], | |
[-182, 39], | |
[211, 78], | |
[-64, 41], | |
[149, 96], | |
[503, -7], | |
[-62, 56], | |
[546, 52] | |
] | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var r = 5, | |
month = Math.floor(10) % 12 + 1; // 1 = January, 12 = December | |
var projection = d3.geo.equirectangular() | |
.scale(143) | |
var c = tb.ctx; | |
c.fillStyle = '#5C5C5C'; | |
var path = d3.geo.path() | |
.projection(projection) | |
.context(c); | |
var world = tb['countries_simplified']; | |
var countries = topojson.object(world, world.objects.world); | |
c.fillStyle = "#6F6F6F"; | |
c.rect(0,0, 1000, 800) | |
c.fill() | |
// clipping path | |
c.beginPath(); | |
path(countries); | |
c.closePath(); | |
c.clip(); | |
// background | |
path(countries); | |
c.fill(); | |
//var values = _.map(stations.features | |
var colorScale = d3.scale.quantize() | |
.domain([-500, 4000]) | |
.range(["#21C4F7","#A3DBDA","#e4f3ba","#F1C488","#e87e53","#d52323"]) | |
var stations = tb['stations']; | |
var delta = 9500; | |
var lowerLimit = -4000; | |
var upperLimit = lowerLimit + delta; | |
var data = _.filter(stations.features, function(d, i) { | |
return d.properties["val" + month] > lowerLimit && d.properties["val" + month] < upperLimit; | |
}); // filter out unknown results | |
var drawGradient = function(p, i) { | |
var coords = _.map(p, function(d, i) { return projection(d) }); | |
var station = data[i]; | |
var value = station.properties["val" + month]; | |
path.pointRadius(r); | |
c.fillStyle = colorScale(value); | |
c.strokeStyle = colorScale(value); | |
c.beginPath(); | |
c.moveTo(coords[0][0], coords[0][1]); | |
_.each(coords.splice(1, coords.length-1), function(d) { | |
c.lineTo(d[0], d[1]); | |
}), | |
c.fill(); | |
c.stroke(); | |
c.closePath(); | |
}; | |
var drawPoint = function(p) { | |
path.pointRadius(0.5); | |
var color = colorScale(p.properties["val" + month]); | |
c.fillStyle = "#B9B9B9"; | |
c.beginPath(); | |
path(p) | |
c.closePath(); | |
c.fill(); | |
}; | |
c.save(); | |
var dataVoronoi = _.map(data, function(d) { return d.geometry.coordinates; }); | |
var points = d3.geom.voronoi(dataVoronoi); | |
_.each(points, drawGradient); | |
//_.each(data, drawPoint); | |
c.restore(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment