Skip to content

Instantly share code, notes, and snippets.

@ThomasSeymat
Created March 31, 2015 23:53
Show Gist options
  • Select an option

  • Save ThomasSeymat/88074ac9f14d61a6e13c to your computer and use it in GitHub Desktop.

Select an option

Save ThomasSeymat/88074ac9f14d61a6e13c to your computer and use it in GitHub Desktop.
Block Green Energy EU
Country Electricity prices for medium (in EUR per kWh in 2014) Share of renewable energy in gross final energy consumption (in % in 2013) Share of renewable energy in fuel consumption of transport (in % in 2013) Energy dependence (in % in 2013)
Belgium 0,2097 7,9 4,3 77,5
Bulgaria 0,0832 19 5,6 37,8
Czech Republic 0,1283 12,4 5,7 27,9
Denmark 0,3042 27,2 5,7 12,3
Germany 0,2981 12,4 6,3 62,7
Estonia 0,1307 25,6 0,2 11,9
Ireland 0,2407 7,8 5 89
Greece 0,1767 15 1,1 62,1
Spain 0,2252 15,4 0,4 70,5
France 0,1585 14,2 7,2 47,9
Croatia 0,1312 18 2,1 52,3
Italy 0,2446 16,7 5 76,9
Cyprus 0,2291 8,1 1,1 96,4
Latvia 0,1365 37,1 3,1 55,9
Lithuania 0,133 23 4,6 78,3
Luxembourg 0,1738 3,6 3,9 96,9
Hungary 0,1202 9,8 5,3 52,3
Malta 0,1474 3,8 3,3 104,1
Netherlands 0,1821 4,5 5 26
Austria 0,2021 32,6 7,5 62,3
Poland 0,1421 11,3 6 25,8
Portugal 0,2175 25,7 0,7 73,5
Romania 0,129 23,9 4,6 18,6
Slovenia 0,163 21,5 3,4 47
Slovakia 0,1507 9,8 5,3 59,6
Finland 0,1563 36,8 9,9 48,7
Sweden 0,1967 52,1 16,7 31,6
United Kingdom 0,1918 5,1 4,4 46,4
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Module 2 exercice</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
</head>
<body>
<h3>This is my SVG image</h3>
<svg width="600" height="480">
<circle cx="300" cy="140" r="200" fill="pink" />
<line x1="20" y1="10" x2="25" y2="190" stroke="orange" stroke-width="3" />
<line x1="25" y1="10" x2="30" y2="190" stroke="orange" stroke-width="3" />
<line x1="30" y1="10" x2="35" y2="190" stroke="orange" stroke-width="3" />
<line x1="50" y1="50" x2="75" y2="190" stroke="blue" stroke-width="3" />
<line x1="55" y1="50" x2="280" y2="290" stroke="blue" stroke-width="3" />
<line x1="60" y1="50" x2="85" y2="190" stroke="blue" stroke-width="8" />
<rect x="200" y="10" width="400" height="25" fill="red" />
<text x="208" y="160" fill="navy" font-size="38" font-weight="bold" font-family="Helvetica">Random Latin Text</text>
</svg>
<script type="text/javascript">
//Load in contents of CSV file
d3.csv("GreenEnergyEU.csv", function(data) {
//Now CSV contents have been transformed into
//an array of JSON objects.
//Log 'data' to the console, for verification.
console.log(data);
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment