Skip to content

Instantly share code, notes, and snippets.

View alansmithy's full-sized avatar

Alan Smith alansmithy

View GitHub Profile
@alansmithy
alansmithy / .block
Last active May 15, 2017 03:08
Radar
license: mit
@alansmithy
alansmithy / .block
Last active February 11, 2019 17:22
Anscombe's Quartet with simple-statistics and d3js v4 -
license: mit
@alansmithy
alansmithy / .block
Last active May 13, 2017 02:26
animated radar plot
license: mit
@alansmithy
alansmithy / .block
Last active May 12, 2017 08:29
Table
license: mit
@alansmithy
alansmithy / .block
Last active May 9, 2017 01:41
d3-annotation
license: mit
@alansmithy
alansmithy / .block
Last active May 9, 2017 01:52
A Europe of Two Halves
license: mit
@alansmithy
alansmithy / .block
Last active May 9, 2017 01:52
European map
license: mit
@alansmithy
alansmithy / index.html
Last active November 5, 2015 18:31
'Squeezed'
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Tax credit changes and the low income family</title>
<script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style type="text/css">
body, text{font-family:metric,sans-serif;}
h2{font-weight:500;font-size:21px;margin-bottom:-10px;}
@alansmithy
alansmithy / index.html
Last active November 1, 2015 19:14
The Costner Effect
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<title>The Costner Effect</title>
<style>
body{font-family:sans-serif;background-color:#dedede}
#container {
width: 800px;
margin-left: auto;
@alansmithy
alansmithy / README.md
Last active March 15, 2019 15:53
Heatmap Calendar in d3js

###Calendar heatmap

A calendar heatmap using a simple csv file structure of date and value. These kinds of displays are good for highlighting patterns in time series data where there might be multiple time patterns present - i.e. daily/weekly/monthly/seasonal. A great implementation of this kind of graphic is the Wisconsin crash calendar.

This particular implementation produces just one svg element with a discrete group element for every year referenced in the data set.