Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jgaffuri
jgaffuri / .block
Last active January 11, 2021 11:48
NUTS download
license: EUPL-1.2
height: 330
border: no
@jgaffuri
jgaffuri / .block
Last active January 9, 2020 20:53
NUTS 3 urban-rural typology
license: EUPL-1.1
height: 780
scrolling: no
border: no
@jgaffuri
jgaffuri / .block
Last active January 9, 2020 20:52
Population change in Europe
license: EUPL-1.1
height: 780
scrolling: no
border: no
@jgaffuri
jgaffuri / .block
Last active December 22, 2019 10:34
d3.sunburst basic example
license: EUPL-1.1
height: 350
scrolling: no
border: yes
@jgaffuri
jgaffuri / .block
Last active January 9, 2020 20:52
Proportional symbol map
license: EUPL-1.1
height: 780
scrolling: no
border: no
@jgaffuri
jgaffuri / .block
Last active January 9, 2020 20:52
Dot pattern map
license: EUPL-1.1
height: 780
scrolling: no
border: no
@jgaffuri
jgaffuri / index.html
Last active December 22, 2019 10:34
Zoom pan with d3 v4
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" type="image/png" href="https://rawgit.com/eurostat/eurostat.js/master/img/favicon.png"/>
<title>Zoom + Pan</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://d3js.org/d3.v4.min.js"></script>
@jgaffuri
jgaffuri / index.html
Last active December 22, 2019 10:34
Zoom pan with d3 v3
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" type="image/png" href="https://rawgit.com/eurostat/eurostat.js/master/img/favicon.png"/>
<title>Zoom + Pan</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://d3js.org/d3.v3.min.js"></script>
@jgaffuri
jgaffuri / index.html
Last active December 22, 2019 10:35
d3 example: join, update, enter, exit
<!DOCTYPE html>
<script src="https://d3js.org/d3.v4.min.js"></script>
<div id="join"></div>
<script>
//see:
//https://bost.ocks.org/mike/join/
//https://bl.ocks.org/mbostock/3808218
//http://rajapradhan.com/blogs/d3-js-v4-essentials/the-enter-update-exit-pattern/