Skip to content

Instantly share code, notes, and snippets.

{
"bevingen": [
{
"name": "Assen",
"date": "26-12-1986",
"time": "07:47:51",
"mag": 2.8,
"diepte": 1.0,
"point": {
"coordinates": [6.548000002889274, 52.992000004450539]
@allardw
allardw / Windenergie_op_land__241116094832.tsv
Last active June 8, 2019 05:16
Wind energy production per province in the Netherlands 1990 - 2016
Regio jaar MW
Groningen 1990 1
Groningen 1991 2
Groningen 1992 2
Groningen 1993 14
Groningen 1994 15
Groningen 1995 52
Groningen 1996 54
Groningen 1997 54
Groningen 1998 55
@allardw
allardw / index.html
Last active November 5, 2016 10:40
Gauge
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://d3js.org/d3.v4.min.js">
</script>
<script src="https://d3js.org/d3-color.v0.5.min.js">
</script>
<script src="https://d3js.org/d3-interpolate.v0.9.min.js">
</script>
@allardw
allardw / README.md
Last active September 15, 2016 10:33
Globe for Google Cardboard - experiment
@allardw
allardw / README.md
Last active July 3, 2020 17:56
Map of Europe in EEA's projection

For maps the EEA uses the ETRS_1989_LAEA_52N_10E coordinate system. This example shows how to get a similair projection with lat-lon data. The key parameters to get the right projection are:

The transverse Mercator projection
d3.geoTransverseMercator()

The center of the projection is on 10E 52N
projection.center([10,52])

@allardw
allardw / README.md
Last active June 28, 2016 14:08
Voroni & Chromatic Scale

Creates a d3-voronoi diagram for a couple of random coordinates. The color of the polygons is defined by a continuous color scheme based on ColorBrewer using d3-scale-chromatic.

Example in D3 v4.0

@allardw
allardw / README.md
Last active June 14, 2016 12:12
Dutch weather coffee cup

This animation shows a representation of montly mean temperatures from 1906-2016 in the Netherlands.

Inspiration for this datavizualization came from the climate spiral by Ed Hawkins and the Measuring Cup by Mitchell Whitelaw

Data source: KNMI

@allardw
allardw / data.json
Last active June 9, 2016 13:14
Custom path generator
{
"indicators": [
{
"indicator": "Q1_1",
"desc": "Public transport"
},
{
"indicator": "Q1_11",
"desc": "No complaints about noise level"
},