Built with blockbuilder.org
Last active
February 9, 2018 18:40
-
-
Save clemsos/009f78d9bf410295f63335419aead372 to your computer and use it in GitHub Desktop.
Top500 supercompters
This file contains hidden or 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
license: mit |
This file contains hidden or 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 chartData = [ | |
{ | |
'Canada' | |
: 22, 'United Kingdom' | |
: 45, 'Italy' | |
: 4, 'India' | |
: 0, 'Japan' | |
: 212, 'List': new Date(1993.0, 5, 1) , 'Korea, South' | |
: 3, 'France' | |
: 33, 'United States' | |
: 699, 'Sweden' | |
: 0, 'China' | |
: 0, 'Others' | |
: 27, 'Switzerland' | |
: 8, 'Germany' | |
: 64, 'Russia' | |
: 0, 'Spain' | |
: 2, | |
}, | |
{ | |
'Canada' | |
: 23, 'United Kingdom' | |
: 44, 'Italy' | |
: 4, 'India' | |
: 0, 'Japan' | |
: 357, 'List': new Date(1993.0, 10, 1) , 'Korea, South' | |
: 16, 'France' | |
: 34, 'United States' | |
: 891, 'Sweden' | |
: 0, 'China' | |
: 0, 'Others' | |
: 28, 'Switzerland' | |
: 9, 'Germany' | |
: 70, 'Russia' | |
: 0, 'Spain' | |
: 4, | |
}, | |
{ | |
'Canada' | |
: 23, 'United Kingdom' | |
: 90, 'Italy' | |
: 2, 'India' | |
: 0, 'Japan' | |
: 625, 'List': new Date(1994.0, 5, 1) , 'Korea, South' | |
: 16, 'France' | |
: 58, 'United States' | |
: 1310, 'Sweden' | |
: 2, 'China' | |
: 0, 'Others' | |
: 37, 'Switzerland' | |
: 27, 'Germany' | |
: 107, 'Russia' | |
: 0, 'Spain' | |
: 7, | |
}, | |
{ | |
'Canada' | |
: 49, 'United Kingdom' | |
: 111, 'Italy' | |
: 3, 'India' | |
: 0, 'Japan' | |
: 722, 'List': new Date(1994.0, 10, 1) , 'Korea, South' | |
: 13, 'France' | |
: 75, 'United States' | |
: 1450, 'Sweden' | |
: 7, 'China' | |
: 0, 'Others' | |
: 88, 'Switzerland' | |
: 45, 'Germany' | |
: 147, 'Russia' | |
: 0, 'Spain' | |
: 6, | |
}, | |
{ | |
'Canada' | |
: 61, 'United Kingdom' | |
: 136, 'Italy' | |
: 23, 'India' | |
: 0, 'Japan' | |
: 974, 'List': new Date(1995.0, 5, 1) , 'Korea, South' | |
: 13, 'France' | |
: 113, 'United States' | |
: 2164, 'Sweden' | |
: 19, 'China' | |
: 5, 'Others' | |
: 99, 'Switzerland' | |
: 77, 'Germany' | |
: 222, 'Russia' | |
: 0, 'Spain' | |
: 7, | |
}, | |
{ | |
'Canada' | |
: 78, 'United Kingdom' | |
: 144, 'Italy' | |
: 27, 'India' | |
: 0, 'Japan' | |
: 1232, 'List': new Date(1995.0, 10, 1) , 'Korea, South' | |
: 35, 'France' | |
: 126, 'United States' | |
: 2581, 'Sweden' | |
: 21, 'China' | |
: 5, 'Others' | |
: 159, 'Switzerland' | |
: 95, 'Germany' | |
: 267, 'Russia' | |
: 0, 'Spain' | |
: 3, | |
}, | |
{ | |
'Canada' | |
: 72, 'United Kingdom' | |
: 160, 'Italy' | |
: 21, 'India' | |
: 0, 'Japan' | |
: 1835, 'List': new Date(1996.0, 5, 1) , 'Korea, South' | |
: 38, 'France' | |
: 152, 'United States' | |
: 2784, 'Sweden' | |
: 38, 'China' | |
: 5, 'Others' | |
: 236, 'Switzerland' | |
: 118, 'Germany' | |
: 402, 'Russia' | |
: 0, 'Spain' | |
: 21, | |
}, | |
{ | |
'Canada' | |
: 82, 'United Kingdom' | |
: 360, 'Italy' | |
: 42, 'India' | |
: 0, 'Japan' | |
: 2506, 'List': new Date(1996.0, 10, 1) , 'Korea, South' | |
: 29, 'France' | |
: 239, 'United States' | |
: 3505, 'Sweden' | |
: 31, 'China' | |
: 6, 'Others' | |
: 345, 'Switzerland' | |
: 129, 'Germany' | |
: 660, 'Russia' | |
: 0, 'Spain' | |
: 33, | |
}, | |
{ | |
'Canada' | |
: 109, 'United Kingdom' | |
: 466, 'Italy' | |
: 50, 'India' | |
: 0, 'Japan' | |
: 2993, 'List': new Date(1997.0, 5, 1) , 'Korea, South' | |
: 165, 'France' | |
: 441, 'United States' | |
: 6650, 'Sweden' | |
: 136, 'China' | |
: 0, 'Others' | |
: 421, 'Switzerland' | |
: 108, 'Germany' | |
: 1243, 'Russia' | |
: 16, 'Spain' | |
: 34, | |
}, | |
{ | |
'Canada' | |
: 164, 'United Kingdom' | |
: 1137, 'Italy' | |
: 75, 'India' | |
: 0, 'Japan' | |
: 3445, 'List': new Date(1997.0, 10, 1) , 'Korea, South' | |
: 183, 'France' | |
: 553, 'United States' | |
: 8782, 'Sweden' | |
: 197, 'China' | |
: 0, 'Others' | |
: 484, 'Switzerland' | |
: 113, 'Germany' | |
: 1671, 'Russia' | |
: 20, 'Spain' | |
: 65, | |
}, | |
{ | |
'Canada' | |
: 257, 'United Kingdom' | |
: 1357, 'Italy' | |
: 161, 'India' | |
: 0, 'Japan' | |
: 3730, 'List': new Date(1998.0, 5, 1) , 'Korea, South' | |
: 237, 'France' | |
: 522, 'United States' | |
: 12872, 'Sweden' | |
: 243, 'China' | |
: 0, 'Others' | |
: 631, 'Switzerland' | |
: 120, 'Germany' | |
: 2367, 'Russia' | |
: 20, 'Spain' | |
: 99, | |
}, | |
{ | |
'Canada' | |
: 449, 'United Kingdom' | |
: 2253, 'Italy' | |
: 142, 'India' | |
: 0, 'Japan' | |
: 3699, 'List': new Date(1998.0, 10, 1) , 'Korea, South' | |
: 212, 'France' | |
: 709, 'United States' | |
: 17802, 'Sweden' | |
: 253, 'China' | |
: 0, 'Others' | |
: 617, 'Switzerland' | |
: 152, 'Germany' | |
: 2938, 'Russia' | |
: 20, 'Spain' | |
: 112, | |
}, | |
{ | |
'Canada' | |
: 481, 'United Kingdom' | |
: 2655, 'Italy' | |
: 344, 'India' | |
: 0, 'Japan' | |
: 5562, 'List': new Date(1999.0, 5, 1) , 'Korea, South' | |
: 149, 'France' | |
: 946, 'United States' | |
: 23729, 'Sweden' | |
: 351, 'China' | |
: 0, 'Others' | |
: 1082, 'Switzerland' | |
: 168, 'Germany' | |
: 3504, 'Russia' | |
: 0, 'Spain' | |
: 82, | |
}, | |
{ | |
'Canada' | |
: 436, 'United Kingdom' | |
: 3203, 'Italy' | |
: 426, 'India' | |
: 0, 'Japan' | |
: 6518, 'List': new Date(1999.0, 10, 1) , 'Korea, South' | |
: 354, 'France' | |
: 2162, 'United States' | |
: 30102, 'Sweden' | |
: 422, 'China' | |
: 37, 'Others' | |
: 1443, 'Switzerland' | |
: 255, 'Germany' | |
: 5571, 'Russia' | |
: 0, 'Spain' | |
: 0, | |
}, | |
{ | |
'Canada' | |
: 729, 'United Kingdom' | |
: 3913, 'Italy' | |
: 455, 'India' | |
: 0, 'Japan' | |
: 9849, 'List': new Date(2000.0, 5, 1) , 'Korea, South' | |
: 454, 'France' | |
: 2165, 'United States' | |
: 36097, 'Sweden' | |
: 393, 'China' | |
: 100, 'Others' | |
: 2437, 'Switzerland' | |
: 420, 'Germany' | |
: 7119, 'Russia' | |
: 0, 'Spain' | |
: 89, | |
}, | |
{ | |
'Canada' | |
: 915, 'United Kingdom' | |
: 5291, 'Italy' | |
: 854, 'India' | |
: 0, 'Japan' | |
: 11220, 'List': new Date(2000.0, 10, 1) , 'Korea, South' | |
: 487, 'France' | |
: 2843, 'United States' | |
: 50567, 'Sweden' | |
: 943, 'China' | |
: 0, 'Others' | |
: 5988, 'Switzerland' | |
: 545, 'Germany' | |
: 8275, 'Russia' | |
: 0, 'Spain' | |
: 143, | |
}, | |
{ | |
'Canada' | |
: 1182, 'United Kingdom' | |
: 5599, 'Italy' | |
: 1237, 'India' | |
: 0, 'Japan' | |
: 15887, 'List': new Date(2001.0, 5, 1) , 'Korea, South' | |
: 700, 'France' | |
: 2985, 'United States' | |
: 64020, 'Sweden' | |
: 685, 'China' | |
: 0, 'Others' | |
: 5754, 'Switzerland' | |
: 454, 'Germany' | |
: 9607, 'Russia' | |
: 0, 'Spain' | |
: 155, | |
}, | |
{ | |
'Canada' | |
: 1622, 'United Kingdom' | |
: 7236, 'Italy' | |
: 1348, 'India' | |
: 0, 'Japan' | |
: 18383, 'List': new Date(2001.0, 10, 1) , 'Korea, South' | |
: 2281, 'France' | |
: 3892, 'United States' | |
: 77848, 'Sweden' | |
: 897, 'China' | |
: 395, 'Others' | |
: 8433, 'Switzerland' | |
: 238, 'Germany' | |
: 12054, 'Russia' | |
: 109, 'Spain' | |
: 231, | |
}, | |
{ | |
'Canada' | |
: 2319, 'United Kingdom' | |
: 11896, 'Italy' | |
: 3814, 'India' | |
: 0, 'Japan' | |
: 57315, 'List': new Date(2002.0, 5, 1) , 'Korea, South' | |
: 2138, 'France' | |
: 9307, 'United States' | |
: 99263, 'Sweden' | |
: 1555, 'China' | |
: 640, 'Others' | |
: 12729, 'Switzerland' | |
: 590, 'Germany' | |
: 20122, 'Russia' | |
: 564, 'Spain' | |
: 0, | |
}, | |
{ | |
'Canada' | |
: 1166, 'United Kingdom' | |
: 20120, 'Italy' | |
: 4887, 'India' | |
: 0, 'Japan' | |
: 57578, 'List': new Date(2002.0, 10, 1) , 'Korea, South' | |
: 2569, 'France' | |
: 9644, 'United States' | |
: 148623, 'Sweden' | |
: 2256, 'China' | |
: 1899, 'Others' | |
: 15322, 'Switzerland' | |
: 736, 'Germany' | |
: 25860, 'Russia' | |
: 734, 'Spain' | |
: 410, | |
}, | |
{ | |
'Canada' | |
: 4205, 'United Kingdom' | |
: 22895, 'Italy' | |
: 5794, 'India' | |
: 1158, 'Japan' | |
: 62598, 'List': new Date(2003.0, 5, 1) , 'Korea, South' | |
: 5023, 'France' | |
: 11891, 'United States' | |
: 198833, 'Sweden' | |
: 2350, 'China' | |
: 3193, 'Others' | |
: 20929, 'Switzerland' | |
: 2387, 'Germany' | |
: 27007, 'Russia' | |
: 1079, 'Spain' | |
: 694, | |
}, | |
{ | |
'Canada' | |
: 8838, 'United Kingdom' | |
: 28956, 'Italy' | |
: 8498, 'India' | |
: 2098, 'Japan' | |
: 62428, 'List': new Date(2003.0, 10, 1) , 'Korea, South' | |
: 10025, 'France' | |
: 15266, 'United States' | |
: 297340, 'Sweden' | |
: 2938, 'China' | |
: 11579, 'Others' | |
: 48870, 'Switzerland' | |
: 2387, 'Germany' | |
: 24402, 'Russia' | |
: 1173, 'Spain' | |
: 1927, | |
}, | |
{ | |
'Canada' | |
: 12121, 'United Kingdom' | |
: 57901, 'Italy' | |
: 12346, 'India' | |
: 5652, 'Japan' | |
: 90901, 'List': new Date(2004.0, 5, 1) , 'Korea, South' | |
: 9082, 'France' | |
: 21755, 'United States' | |
: 461034, 'Sweden' | |
: 3782, 'China' | |
: 27614, 'Others' | |
: 62577, 'Switzerland' | |
: 1817, 'Germany' | |
: 42975, 'Russia' | |
: 1456, 'Spain' | |
: 1285, | |
}, | |
{ | |
'Canada' | |
: 15830, 'United Kingdom' | |
: 83816, 'Italy' | |
: 17989, 'India' | |
: 6944, 'Japan' | |
: 95004, 'List': new Date(2004.0, 10, 1) , 'Korea, South' | |
: 14851, 'France' | |
: 21315, 'United States' | |
: 687603, 'Sweden' | |
: 4642, 'China' | |
: 31937, 'Others' | |
: 71610, 'Switzerland' | |
: 4076, 'Germany' | |
: 48264, 'Russia' | |
: 2251, 'Spain' | |
: 22691, | |
}, | |
{ | |
'Canada' | |
: 23503, 'United Kingdom' | |
: 85558, 'Italy' | |
: 20064, 'India' | |
: 13995, 'Japan' | |
: 128625, 'List': new Date(2005.0, 5, 1) , 'Korea, South' | |
: 28866, 'France' | |
: 19785, 'United States' | |
: 1045885, 'Sweden' | |
: 7239, 'China' | |
: 53479, 'Others' | |
: 122105, 'Switzerland' | |
: 25008, 'Germany' | |
: 80481, 'Russia' | |
: 7851, 'Spain' | |
: 32432, | |
}, | |
{ | |
'Canada' | |
: 22048, 'United Kingdom' | |
: 124409, 'Italy' | |
: 14536, 'India' | |
: 11378, 'Japan' | |
: 130523, 'List': new Date(2005.0, 10, 1) , 'Korea, South' | |
: 31599, 'France' | |
: 23512, 'United States' | |
: 1570714, 'Sweden' | |
: 4999, 'China' | |
: 59541, 'Others' | |
: 165274, 'Switzerland' | |
: 34368, 'Germany' | |
: 71303, 'Russia' | |
: 5355, 'Spain' | |
: 29770, | |
}, | |
{ | |
'Canada' | |
: 37300, 'United Kingdom' | |
: 137861, 'Italy' | |
: 19728, 'India' | |
: 36839, 'Japan' | |
: 260088, 'List': new Date(2006.0, 5, 1) , 'Korea, South' | |
: 27121, 'France' | |
: 67406, 'United States' | |
: 1779389, 'Sweden' | |
: 4999, 'China' | |
: 94175, 'Others' | |
: 159387, 'Switzerland' | |
: 36636, 'Germany' | |
: 93970, 'Russia' | |
: 6645, 'Spain' | |
: 27910, | |
}, | |
{ | |
'Canada' | |
: 37316, 'United Kingdom' | |
: 186417, 'Italy' | |
: 39171, 'India' | |
: 34162, 'Japan' | |
: 286673, 'List': new Date(2006.0, 10, 1) , 'Korea, South' | |
: 33715, 'France' | |
: 99870, 'United States' | |
: 2271401, 'Sweden' | |
: 4999, 'China' | |
: 72192, 'Others' | |
: 167547, 'Switzerland' | |
: 47682, 'Germany' | |
: 145407, 'Russia' | |
: 9704, 'Spain' | |
: 91600, | |
}, | |
{ | |
'Canada' | |
: 54818, 'United Kingdom' | |
: 337997, 'Italy' | |
: 36604, 'India' | |
: 45696, 'Japan' | |
: 285611, 'List': new Date(2007.0, 5, 1) , 'Korea, South' | |
: 35313, 'France' | |
: 156089, 'United States' | |
: 3075750, 'Sweden' | |
: 50932, 'China' | |
: 96403, 'Others' | |
: 340519, 'Switzerland' | |
: 60251, 'Germany' | |
: 245831, 'Russia' | |
: 31164, 'Spain' | |
: 97617, | |
}, | |
{ | |
'Canada' | |
: 32139, 'United Kingdom' | |
: 506470, 'Italy' | |
: 69111, 'India' | |
: 194523, 'Japan' | |
: 291118, 'List': new Date(2007.0, 10, 1) , 'Korea, South' | |
: 15706, 'France' | |
: 222555, 'United States' | |
: 4181665, 'Sweden' | |
: 186176, 'China' | |
: 87176, 'Others' | |
: 359846, 'Switzerland' | |
: 74568, 'Germany' | |
: 536463, 'Russia' | |
: 82615, 'Spain' | |
: 137451, | |
}, | |
{ | |
'Canada' | |
: 22864, 'United Kingdom' | |
: 806203, 'Italy' | |
: 99980, 'India' | |
: 189853, 'Japan' | |
: 550864, 'List': new Date(2008.0, 5, 1) , 'Korea, South' | |
: 16990, 'France' | |
: 711649, 'United States' | |
: 7481308, 'Sweden' | |
: 268278, 'China' | |
: 140311, 'Others' | |
: 522229, 'Switzerland' | |
: 80899, 'Germany' | |
: 973475, 'Russia' | |
: 154617, 'Spain' | |
: 133161, | |
}, | |
{ | |
'Canada' | |
: 70479, 'United Kingdom' | |
: 905708, 'Italy' | |
: 182434, 'India' | |
: 259394, 'Japan' | |
: 522980, 'List': new Date(2008.0, 10, 1) , 'Korea, South' | |
: 16990, 'France' | |
: 886782, 'United States' | |
: 11644465, 'Sweden' | |
: 274790, 'China' | |
: 520961, 'Others' | |
: 827033, 'Switzerland' | |
: 81565, 'Germany' | |
: 803760, 'Russia' | |
: 222968, 'Spain' | |
: 153201, | |
}, | |
{ | |
'Canada' | |
: 358740, 'United Kingdom' | |
: 1230924, 'Italy' | |
: 186239, 'India' | |
: 247285, 'Japan' | |
: 873109, 'List': new Date(2009.0, 5, 1) , 'Korea, South' | |
: 0, 'France' | |
: 1004742, 'United States' | |
: 13720809, 'Sweden' | |
: 343447, 'China' | |
: 788125, 'Others' | |
: 1181309, 'Switzerland' | |
: 184945, 'Germany' | |
: 2207846, 'Russia' | |
: 166945, 'Spain' | |
: 146316, | |
}, | |
{ | |
'Canada' | |
: 439782, 'United Kingdom' | |
: 1549038, 'Italy' | |
: 200688, 'India' | |
: 199257, 'Japan' | |
: 994211, 'List': new Date(2009.0, 10, 1) , 'Korea, South' | |
: 298170, 'France' | |
: 1214249, 'United States' | |
: 16425369, 'Sweden' | |
: 300733, 'China' | |
: 1379876, 'Others' | |
: 1517274, 'Switzerland' | |
: 346885, 'Germany' | |
: 2288765, 'Russia' | |
: 646245, 'Spain' | |
: 205897, | |
}, | |
{ | |
'Canada' | |
: 403950, 'United Kingdom' | |
: 1785454, 'Italy' | |
: 281510, 'India' | |
: 283379, 'Japan' | |
: 1252711, 'List': new Date(2010.0, 5, 1) , 'Korea, South' | |
: 274800, 'France' | |
: 1706870, 'United States' | |
: 17969274, 'Sweden' | |
: 416016, 'China' | |
: 2992629, 'Others' | |
: 1519511, 'Switzerland' | |
: 346885, 'Germany' | |
: 2248463, 'Russia' | |
: 814710, 'Spain' | |
: 138513, | |
}, | |
{ | |
'Canada' | |
: 422401, 'United Kingdom' | |
: 1519552, 'Italy' | |
: 254075, 'India' | |
: 257243, 'Japan' | |
: 2903675, 'List': new Date(2010.0, 10, 1) , 'Korea, South' | |
: 907600, 'France' | |
: 2843774, 'United States' | |
: 22471299, 'Sweden' | |
: 367030, 'China' | |
: 5688791, 'Others' | |
: 2105941, 'Switzerland' | |
: 317895, 'Germany' | |
: 2721354, 'Russia' | |
: 867729, 'Spain' | |
: 138513, | |
}, | |
{ | |
'Canada' | |
: 640128, 'United Kingdom' | |
: 1872107, 'Italy' | |
: 471746, 'India' | |
: 187910, 'Japan' | |
: 11182236, 'List': new Date(2011.0, 5, 1) , 'Korea, South' | |
: 950833, 'France' | |
: 3180744, 'United States' | |
: 25265849, 'Sweden' | |
: 489530, 'China' | |
: 7136314, 'Others' | |
: 2515168, 'Switzerland' | |
: 317895, 'Germany' | |
: 3242111, 'Russia' | |
: 1341585, 'Spain' | |
: 135860, | |
}, | |
{ | |
'Canada' | |
: 1249486, 'United Kingdom' | |
: 2771502, 'Italy' | |
: 426219, 'India' | |
: 187910, 'Japan' | |
: 14224106, 'List': new Date(2011.0, 10, 1) , 'Korea, South' | |
: 907600, 'France' | |
: 3709337, 'United States' | |
: 31674460, 'Sweden' | |
: 396460, 'China' | |
: 10489499, 'Others' | |
: 2709976, 'Switzerland' | |
: 409690, 'Germany' | |
: 3631255, 'Russia' | |
: 1043069, 'Spain' | |
: 239060, | |
}, | |
{ | |
'Canada' | |
: 1424183, 'United Kingdom' | |
: 6633642, 'Italy' | |
: 2485851, 'India' | |
: 787651, 'Japan' | |
: 18011149, 'List': new Date(2012.0, 5, 1) , 'Korea, South' | |
: 907600, 'France' | |
: 6358046, 'United States' | |
: 59975467, 'Sweden' | |
: 528360, 'China' | |
: 11397100, 'Others' | |
: 4852283, 'Switzerland' | |
: 316200, 'Germany' | |
: 8133773, 'Russia' | |
: 1293026, 'Spain' | |
: 313449, | |
}, | |
{ | |
'Canada' | |
: 1858445, 'United Kingdom' | |
: 7260688, 'Italy' | |
: 2424814, 'India' | |
: 1291738, 'Japan' | |
: 19448399, 'List': new Date(2012.0, 10, 1) , 'Korea, South' | |
: 1014400, 'France' | |
: 6413594, 'United States' | |
: 88981163, 'Sweden' | |
: 993201, 'China' | |
: 12349895, 'Others' | |
: 6215049, 'Switzerland' | |
: 978980, 'Germany' | |
: 10178295, 'Russia' | |
: 1990634, 'Spain' | |
: 740085, | |
}, | |
{ | |
'Canada' | |
: 1772008, 'United Kingdom' | |
: 8082236, 'Italy' | |
: 2422982, 'India' | |
: 2690461, 'Japan' | |
: 20307189, 'List': new Date(2013.0, 5, 1) , 'Korea, South' | |
: 1014400, 'France' | |
: 8938486, 'United States' | |
: 106833637, 'Sweden' | |
: 1161292, 'China' | |
: 47485017, 'Others' | |
: 7050058, 'Switzerland' | |
: 1405767, 'Germany' | |
: 11351753, 'Russia' | |
: 2012186, 'Spain' | |
: 1126860, | |
}, | |
{ | |
'Canada' | |
: 2077841, 'United Kingdom' | |
: 9058328, 'Italy' | |
: 2665609, 'India' | |
: 3040297, 'Japan' | |
: 22472218, 'List': new Date(2013.0, 10, 1) , 'Korea, South' | |
: 1258060, 'France' | |
: 9489912, 'United States' | |
: 118261596, 'Sweden' | |
: 1067766, 'China' | |
: 48549092, 'Others' | |
: 7631847, 'Switzerland' | |
: 7765418, 'Germany' | |
: 13696833, 'Russia' | |
: 1846612, 'Spain' | |
: 1199031, | |
}, | |
{ | |
'Canada' | |
: 1959749, 'United Kingdom' | |
: 14871213, 'Italy' | |
: 5537409, 'India' | |
: 2898744, 'Japan' | |
: 23941240, 'List': new Date(2014.0, 5, 1) , 'Korea, South' | |
: 2112514, 'France' | |
: 11236984, 'United States' | |
: 122452335, 'Sweden' | |
: 812531, 'China' | |
: 52129820, 'Others' | |
: 9796588, 'Switzerland' | |
: 7959572, 'Germany' | |
: 14809560, 'Russia' | |
: 2046482, 'Spain' | |
: 1199031, | |
}, | |
{ | |
'Canada' | |
: 1903949, 'United Kingdom' | |
: 15366533, 'Italy' | |
: 5430931, 'India' | |
: 3137691, 'Japan' | |
: 25027460, 'List': new Date(2014.0, 10, 1) , 'Korea, South' | |
: 2527211, 'France' | |
: 14120724, 'United States' | |
: 136850159, 'Sweden' | |
: 2382972, 'China' | |
: 52258095, 'Others' | |
: 14083748, 'Switzerland' | |
: 8904372, 'Germany' | |
: 20090183, 'Russia' | |
: 4883085, 'Spain' | |
: 1199031, | |
}, | |
{ | |
'Canada' | |
: 1903949, 'United Kingdom' | |
: 14532110, 'Italy' | |
: 6115183, 'India' | |
: 4597997, 'Japan' | |
: 34039200, 'List': new Date(2015.0, 5, 1) , 'Korea, South' | |
: 2527211, 'France' | |
: 13872718, 'United States' | |
: 161431984, 'Sweden' | |
: 2472241, 'China' | |
: 49567685, 'Others' | |
: 26985587, 'Switzerland' | |
: 8631418, 'Germany' | |
: 26697524, 'Russia' | |
: 4722203, 'Spain' | |
: 1199031, | |
}, | |
{ | |
'Canada' | |
: 1903949, 'United Kingdom' | |
: 11601324, 'Italy' | |
: 6115183, 'India' | |
: 4933697, 'Japan' | |
: 38438914, 'List': new Date(2015.0, 10, 1) , 'Korea, South' | |
: 7186951, 'France' | |
: 12252180, 'United States' | |
: 172582178, 'Sweden' | |
: 2130709, 'China' | |
: 88711110, 'Others' | |
: 27420104, 'Switzerland' | |
: 8724951, 'Germany' | |
: 29870244, 'Russia' | |
: 4736512, 'Spain' | |
: 1199031, | |
}, | |
{ | |
'Canada' | |
: 715551, 'United Kingdom' | |
: 20025427, 'Italy' | |
: 7839073, 'India' | |
: 4406351, 'Japan' | |
: 39002022, 'List': new Date(2016.0, 5, 1) , 'Korea, South' | |
: 6456658, 'France' | |
: 21951929, 'United States' | |
: 173222639, 'Sweden' | |
: 2775031, 'China' | |
: 211428546, 'Others' | |
: 34105285, 'Switzerland' | |
: 8397281, 'Germany' | |
: 31112671, 'Russia' | |
: 4989512, 'Spain' | |
: 925058, | |
}, | |
{ | |
'Canada' | |
: 715551, 'United Kingdom' | |
: 27602596, 'Italy' | |
: 14062113, 'India' | |
: 3092368, 'Japan' | |
: 54486820, 'List': new Date(2016.0, 10, 1) , 'Korea, South' | |
: 5679724, 'France' | |
: 25398803, 'United States' | |
: 228032809, 'Sweden' | |
: 3378143, 'China' | |
: 223571135, 'Others' | |
: 31980926, 'Switzerland' | |
: 12273082, 'Germany' | |
: 36501434, 'Russia' | |
: 4411812, 'Spain' | |
: 925058, | |
}, | |
{ | |
'Canada' | |
: 5612415, 'United Kingdom' | |
: 30717835, 'Italy' | |
: 17308313, 'India' | |
: 2703926, 'Japan' | |
: 62481816, 'List': new Date(2017.0, 5, 1) , 'Korea, South' | |
: 8534877, 'France' | |
: 25291568, 'United States' | |
: 251663305, 'Sweden' | |
: 4029796, 'China' | |
: 235115292, 'Others' | |
: 36138511, 'Switzerland' | |
: 21716281, 'Germany' | |
: 37497153, 'Russia' | |
: 3662012, 'Spain' | |
: 6227200, | |
}, | |
{ | |
'Canada' | |
: 5088851, 'United Kingdom' | |
: 32268888, 'Italy' | |
: 16274622, 'India' | |
: 2794753, 'Japan' | |
: 90874702, 'List': new Date(2017.0, 10, 1) , 'Korea, South' | |
: 7051981, 'France' | |
: 30818432, 'United States' | |
: 249829542, 'Sweden' | |
: 4932065, 'China' | |
: 298876659, 'Others' | |
: 36036686, 'Switzerland' | |
: 21716281, 'Germany' | |
: 38424228, 'Russia' | |
: 3662012, 'Spain' | |
: 6470800, | |
}, | |
] |
This file contains hidden or 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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.5.0/Chart.min.js"> </script> | |
<script src="countries.js"></script> | |
<style> | |
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; } | |
</style> | |
</head> | |
<body> | |
<div style="width:75%; margin: 1em auto"> | |
<canvas id="chart" width="900" height="600"></canvas> | |
</div> | |
<script> | |
var colorScale = d3.scaleOrdinal(d3.schemeCategory20) | |
var months = { 5 : "Mai", 10 : "Oct"} | |
// map keys | |
var quarters = chartData | |
.filter(d => d.List.getFullYear() > 2005) | |
.map(d => months[d["List"].getMonth()]+" "+ d["List"].getFullYear()) | |
// console.log(quarters) | |
// remove useless names in counties list | |
var europe = ["United Kingdom", "Italy", "France", "Sweden", "Germany", "Spain"] | |
var countries = Object.keys(chartData[0]) | |
.filter(country => country != "List") | |
var data = {} | |
countries | |
.filter(d=> europe.indexOf(d)===-1) // not in Europe | |
.forEach(country => data[country] = []) | |
data["Europe"] = [] | |
chartData | |
.filter(d => d.List.getFullYear() > 2005) | |
.forEach(d => { | |
var point = 0; | |
countries.forEach( country => { | |
if (europe.indexOf(country)>-1 ) { | |
point = point + d[country] | |
} else { | |
data[country].push(d[country]) | |
} | |
}) | |
data["Europe"].push(point) | |
}) | |
var sortedCountries = [ "Others", "China", "Japan", "Korea, South", "India", "United States", "Canada", "Russia", "Switzerland", "Europe"].reverse() | |
var frenchCountries = { | |
"Canada" : "Canada" , | |
"India" : "Inde", | |
"Japan" : "Japon", | |
"Korea, South" : "Corée du Sud", | |
"United States" : "USA", | |
"China" : "Chine", | |
"Others" : "Autres", | |
"Switzerland" : "Suisse", | |
"Russia" : "Russie", | |
"Europe" : "Europe" | |
} | |
// map values | |
var datasets = sortedCountries | |
.map(country => { | |
return { | |
fill: true, | |
label : frenchCountries[country], | |
data : data[country].map(d => d/1000000), | |
borderColor : colorScale(country), | |
backgroundColor : colorScale(country) | |
} | |
}) | |
// console.log(quarters) | |
console.log(datasets.map(d=> d.data.length)) | |
var config = { | |
type: 'line', | |
data: { | |
labels : quarters, | |
datasets : datasets | |
}, | |
options: { | |
responsive: true, | |
title:{ | |
display:false, | |
text:"Capacité théorique de calcul" | |
}, | |
elements: { point: { radius: 1 } }, | |
tooltips: { | |
mode: 'index', | |
// callbacks: { | |
// label: (tooltipItem, data) => tooltipItem.yLabel+"%"; | |
// } | |
}, | |
scales: { | |
xAxes: [{ | |
scaleLabel: { | |
display: false, | |
labelString: 'Trimestres' | |
} | |
}], | |
yAxes: [{ | |
stacked: true, | |
scaleLabel: { | |
display: true, | |
labelString: 'Capacité théorique de calcul (exaFLOPS)' | |
}, | |
ticks: { | |
beginAtZero: true, | |
// steps: 10, | |
// stepValue: 5, | |
// max: 100 | |
} | |
}] | |
}, | |
animation: { | |
duration: 750, | |
}, | |
} | |
} | |
var chart = new Chart(document.getElementById("chart"), config); | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment