Skip to content

Instantly share code, notes, and snippets.

View d3noob's full-sized avatar

d3noob

View GitHub Profile
@d3noob
d3noob / index.html
Last active August 29, 2015 13:56
Aircraft track experiment
<?php ?>
<!DOCTYPE html>
<html>
<head>
<title>Simple Leaflet Map</title>
<meta charset="utf-8" />
<link
rel="stylesheet"
href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css"
@d3noob
d3noob / leanpubdownloads.html
Last active December 20, 2015 22:09
Leanpub book data investigations
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<title>dc.js Experiment</title>
<script src='js/d3.v3.js' type='text/javascript'></script>
<script src='js/crossfilter.js' type='text/javascript'></script>
<script src='js/dc2.js' type='text/javascript'></script>
@d3noob
d3noob / index.html
Last active December 30, 2015 13:48
Test Leaflet Install using tile.osm.org
<!DOCTYPE html>
<html>
<head>
<title>Simple Leaflet Map</title>
<meta charset="utf-8" />
<link
rel="stylesheet"
href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css"
/>
</head>
@d3noob
d3noob / index.html
Last active February 1, 2016 21:58
Solar water flow
<!DOCTYPE html>
<meta charset="utf-8">
<style> /* set the CSS */
body { font: 12px Arial;}
path {
stroke: steelblue;
stroke-width: 2;
fill: none;
@d3noob
d3noob / index.html
Last active March 2, 2016 21:49
A simple leaflet.js map
<!DOCTYPE html>
<html>
<head>
<title>Simple Leaflet Map</title>
<meta charset="utf-8" />
<link
rel="stylesheet"
href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css"
/>
</head>
@d3noob
d3noob / data.csv
Last active July 4, 2016 08:41
Formatted time labels for an axis with v4
date close
1-May-12 58.13
30-Apr-12 53.98
27-Apr-12 67.00
26-Apr-12 89.70
25-Apr-12 99.00
24-Apr-12 130.28
23-Apr-12 166.70
20-Apr-12 234.98
19-Apr-12 345.44
@d3noob
d3noob / data2.csv
Last active July 12, 2016 19:21
Multiple line graph in v4
date close open
1-May-12 68.13 34.12
30-Apr-12 63.98 45.56
27-Apr-12 67.00 67.89
26-Apr-12 89.70 78.54
25-Apr-12 99.00 89.23
24-Apr-12 130.28 99.23
23-Apr-12 166.70 101.34
20-Apr-12 234.98 122.34
19-Apr-12 345.44 134.56
@d3noob
d3noob / .block
Last active July 20, 2016 17:31
Changing the colour of an axis in v4
license: gpl-3.0
@d3noob
d3noob / index.html
Last active August 16, 2016 10:01
Rotating text using a range input in v4
<!DOCTYPE html>
<meta charset="utf-8">
<title>Input test</title>
<p>
<label for="nAngle"
style="display: inline-block; width: 240px; text-align: right">
angle = <span id="nAngle-value">…</span>
</label>
<input type="range" min="0" max="360" id="nAngle">
@d3noob
d3noob / index.html
Last active November 7, 2016 16:49
Multi-line graph 4 with v4: Toggle
<!DOCTYPE html>
<meta charset="utf-8">
<style> /* set the CSS */
body { font: 12px Arial;}
path {
stroke: steelblue;
stroke-width: 2;
fill: none;