Skip to content

Instantly share code, notes, and snippets.

@dyorama
dyorama / index.html
Created November 9, 2015 01:28
Version 3 : Top 20 french cities by natural disasters : type and number per year
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Stacked area chart</title>
<script type="text/javascript" src="//d3js.org/d3.v3.min.js"></script>
<style type="text/css">
body {
margin: 0;
@dyorama
dyorama / index.html
Last active November 7, 2015 21:07
Top 20 french cities by natural disasters : type and number per year
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Stacked area chart</title>
<script type="text/javascript" src="//d3js.org/d3.v3.min.js"></script>
<style type="text/css">
body {
margin: 0;
@dyorama
dyorama / index.html
Created November 6, 2015 18:18
Number of disaster per year in the top 20 french cities by natural disaster
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Stacked area chart</title>
<script type="text/javascript" src="//d3js.org/d3.v3.min.js"></script>
<style type="text/css">
body {
background-color: white;
@dyorama
dyorama / 20villes.csv
Last active November 6, 2015 11:20
20 villes Version 2
villes catastrophes département
Nice 63 Nice (06)
Cagnes-sur-Mer 48 Cagnes-sur-Mer (06)
Antibes 46 Antibes (06)
Cannes 40 Cannes (06)
Marseille 39 Marseille (13)
Èze 38 Èze (06)
Villeneuve-Loubet 38 Villeneuve-Loubet (06)
Contes 36 Contes (06)
Falicon 36 Falicon (06)
@dyorama
dyorama / 20villes.csv
Last active October 29, 2015 18:12
20 villes
villes catastrophes département
Nice 63 Nice (06)
Cagnes-sur-Mer 48 Cagnes-sur-Mer (06)
Antibes 46 Antibes (06)
Cannes 40 Cannes (06)
Marseille 39 Marseille (13)
Èze 38 Èze (06)
Villeneuve-Loubet 38 Villeneuve-Loubet (06)
Contes 36 Contes (06)
Falicon 36 Falicon (06)
@dyorama
dyorama / catanaturelles.csv
Created October 15, 2015 12:51
Catastrophes naturelles
Mois catastrophes
Janvier 19237
Février 5479
Mars 2337
Avril 6582
Mai 11928
Juin 8808
Juillet 13737
Août 3846
Septembre 5879
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Cleaning Up</title>
<script type="text/javascript" src="../d3.v3.js"></script>
<style type="text/css">
body {
background-color: white;
@dyorama
dyorama / forestdata.csv
Created April 23, 2015 23:38
Module 6 exercise 6
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 24 columns, instead of 16. in line 5.
country,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012
Russian Federation,8089500,8089500,8090136,8090455,8090773,8091092,8091411,8091729,8092048,8092366,8092685,8091728,8090771,8089814,8088857,8087900,8088500,8089100,8089700,8090300,8090900,8091500,8092100
Brazil,5748390,5719494,5690598,5661702,5632806,5603910,5575014,5546118,5517222,5488326,5459430,5428532,5397634,5366736,5335838,5304940,5282996,5261052,5239108,5217164,5195220,5173276,5151332
Canada,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340
United States,2963350,2967210,2971070,2974930,2978790,2982650,2986510,2990370,2994230,2998090,3001950,3005776,3009602,3013428,3017254,3021080,3024908,3028736,3032564,3036392,3040220,3044048,3047876
China,1571406,1591266,1611126,1630986,1650846,1670706,1690565,1710425,1730285,1750145,1770005,1802092,1834179,1866265,
@dyorama
dyorama / forestdata.csv
Created April 23, 2015 23:36
Module 6 exercise
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 24 columns, instead of 16. in line 5.
country,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012
Russian Federation,8089500,8089500,8090136,8090455,8090773,8091092,8091411,8091729,8092048,8092366,8092685,8091728,8090771,8089814,8088857,8087900,8088500,8089100,8089700,8090300,8090900,8091500,8092100
Brazil,5748390,5719494,5690598,5661702,5632806,5603910,5575014,5546118,5517222,5488326,5459430,5428532,5397634,5366736,5335838,5304940,5282996,5261052,5239108,5217164,5195220,5173276,5151332
Canada,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340
United States,2963350,2967210,2971070,2974930,2978790,2982650,2986510,2990370,2994230,2998090,3001950,3005776,3009602,3013428,3017254,3021080,3024908,3028736,3032564,3036392,3040220,3044048,3047876
China,1571406,1591266,1611126,1630986,1650846,1670706,1690565,1710425,1730285,1750145,1770005,1802092,1834179,1866265,
@dyorama
dyorama / forestdata.csv
Created April 23, 2015 23:28
Module 6 exercise
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 24 columns, instead of 16. in line 5.
country,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012
Russian Federation,8089500,8089500,8090136,8090455,8090773,8091092,8091411,8091729,8092048,8092366,8092685,8091728,8090771,8089814,8088857,8087900,8088500,8089100,8089700,8090300,8090900,8091500,8092100
Brazil,5748390,5719494,5690598,5661702,5632806,5603910,5575014,5546118,5517222,5488326,5459430,5428532,5397634,5366736,5335838,5304940,5282996,5261052,5239108,5217164,5195220,5173276,5151332
Canada,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340,3101340
United States,2963350,2967210,2971070,2974930,2978790,2982650,2986510,2990370,2994230,2998090,3001950,3005776,3009602,3013428,3017254,3021080,3024908,3028736,3032564,3036392,3040220,3044048,3047876
China,1571406,1591266,1611126,1630986,1650846,1670706,1690565,1710425,1730285,1750145,1770005,1802092,1834179,1866265,