Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<title>D3 and X3DOM</title>
<link rel="stylesheet" type="text/css" href="x3dom.css">
</link>
<style type="text/css">
body {
width: 960px;
margin: auto;
@phil-pedruco
phil-pedruco / index.html
Created June 5, 2014 19:15
Colour interpolation
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Interpolated Colour Scales</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
</head>
@phil-pedruco
phil-pedruco / index.html
Created August 19, 2014 19:45
Plotting a bell (Gaussian) curve in d3
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Normal Plot</title>
<meta name="description" content="">
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style type="text/css">
client_ip timestamp bytes_transfered
92.239.29.77 1412109000000 577818
92.239.29.77 1412110830000 108257
92.239.29.77 1412112600000 20922726
92.239.29.77 1412132430000 3190
92.239.29.78 1412109000000 57818
92.239.29.78 1412110830000 10257
92.239.29.78 1412112600000 2022726
ip timestamp value
92.239.29.77 1412132430000 3190
92.239.29.77 1412142430000 319011
92.239.29.78 1412128830000 545568
92.239.29.78 1412130600000 616409
92.239.29.78 1412132430000 319087
92.239.29.76 1412130600000 616409
92.239.29.76 1412132430000 319087
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Examples</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
<style type="text/css">
Rank State 2013 2014 2015 2016 2017 2018
3 Andhra Pradesh 41971.47 43406.07 44840.67 46275.26 47709.86 49144.46
27 Arunachal Pradesh 189.08 190.22 191.36 192.5 193.64 194.78
8 Assam 17617.21 18176.91 18736.61 19296.31 19856.01 20415.71
12 Bihar 13143.79 13744.78 14345.77 14946.77 15547.76 16148.75
15 Chhattisgarh 6799.26 6942.73 7086.21 7229.68 7373.16 7516.64
20 Delhi 3728.21 3657.41 3586.61 3515.81 3445.01 3374.21
24 Goa 225.71 230.41 235.11 239.81 244.51 249.21
6 Gujarat 25225.33 26259.87 27294.41 28328.95 29363.49 30398.03
13 Haryana 7488.62 7583.23 7677.84 7772.45 7867.05 7961.66
@phil-pedruco
phil-pedruco / 50m.json
Last active October 28, 2019 09:01
Do you know your capitals?
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.