This data visualization is based on work done at Open Data Day 2014 in Copenhagen.
To test locally, you can use the following command to run a static HTTP server on your local machine:
python -m SimpleHTTPServer 8000
- Use
d3.format
to add SI prefixes to y-axis. - Add graphs for energy usage and energy production
Data courtesy of Region Syddanmark and Danmarks Statistik.
Inspired by Norske Utslipp (which has access to data at a greater level of detail).
http://stackoverflow.com/questions/978740/javascript-how-to-detect-if-document-has-loaded-ie-7-firefox-3 http://stackoverflow.com/questions/16823757/d3-selectelement-not-working-when-code-above-the-html-element
http://bost.ocks.org/mike/chart/time-series-chart.js http://misoproject.com/d3-chart/