Skip to content

Instantly share code, notes, and snippets.

View radiocontrolled's full-sized avatar

Alison Benjamin radiocontrolled

  • London
View GitHub Profile
@radiocontrolled
radiocontrolled / index.html
Last active December 25, 2015 13:09
Chart
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset='utf-8' />
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<div class="container" role="main">
<div class="sections">
<article>
@radiocontrolled
radiocontrolled / index.html
Last active December 25, 2015 13:09
Barchart with labels
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<script>
//some dummy data
@radiocontrolled
radiocontrolled / index.html
Last active December 25, 2015 13:09
Force diagram with labels
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<article></article>
<script>
@radiocontrolled
radiocontrolled / README.md
Last active March 1, 2023 14:18
Humanitarian population by major Canadian city, 2012
@radiocontrolled
radiocontrolled / README.md
Last active December 26, 2015 17:38
Humanitarian population by Canadian region, 2012
@radiocontrolled
radiocontrolled / README.md
Last active December 27, 2015 15:09
Recent tracks added to WFMU's Free Music Archive

What are the 20 most recent tracks added to WFMU's Free Music Archive?

WFMU's Free Music Archive makes a list of recently added tracks to its archive available at http://freemusicarchive.org/recent.jsonp. This visualisation calls in and displays that data using D3's force directed layout feature as well as this D3 JSONP plugin.

The artists are delineated via colour using a D3 categorical colour scale. Each node of the layout is also labelled.

The Free Music Archive is project by the freeform radio station WFMU. It provides a library of legal audio that anyone can download.

@radiocontrolled
radiocontrolled / README.md
Last active December 27, 2015 23:09
WFMU Free Music Archive scatterplot

How many curators are contributing playlists to the Free Music Archive?

The Free Music Archive (FMA) is project by the freeform radio station WFMU, which is based in Jersey City, New Jersey.

In line with WFMU's open access philosophy, the Free Music Archive provides a library of legal audio that anyone can download, and has a basic API that provides access to curator, album, artist and track data in JSON, JSONP and XML formats.

This visualisation calls in Free Music Archive curator data (specifically, the number of playlists each curator has contriubted to the FMA) via JSONP and displays the data as a scatterplot.

@radiocontrolled
radiocontrolled / README.md
Last active December 28, 2015 12:28
Top 10 contributors (by # of playlists) to the FMA

Who are the top 10 contributors (by # of playlists) to the Free Music Archive?

This visualisation displays curator data as a bar graph and makes use of this D3 JSONP plugin to grab curatorial data using the Free Music Archive's API.

The bar graph is labelled, with labels displaying on hover. D3's categorical colour scale is also employed.

The Free Music Archive is project by the freeform radio station WFMU. It provides a library of legal audio that anyone can download.

@radiocontrolled
radiocontrolled / README.md
Last active January 30, 2017 02:08
Responsive map

Experimenting with re-drawing a map using a resize() function.

@radiocontrolled
radiocontrolled / README.md
Last active December 29, 2015 20:19
Refugee claimants by Canadian region, 2012