Skip to content

Instantly share code, notes, and snippets.

View PMeinshausen's full-sized avatar

Paul Meinshausen PMeinshausen

View GitHub Profile
@PMeinshausen
PMeinshausen / README.mkd
Last active December 18, 2015 15:39
Zoomable Treemap of the Chicago Data Portal

A zoomable treemap of the Chicago Data Portal, with the datasets grouped by categories (defined by the portal) and dimensions drawn based on the size of the individual datasets. Currently the color simply helps keep the rectangles distinct, but in future versions information (e.g. # of views the dataset has received, or tags from the portal) could be encoded in a color scale. The rectangles are linked to the datasets they represent in the portal (just click anywhere within the rectangle).

The d3 code is heavily based on code shared by The Ohio State University Department of Political Science. The code for scraping, transforming, and visualizing the data is available in a Data Science for Social Good github repository

@PMeinshausen
PMeinshausen / CourseStructure.json
Last active December 20, 2015 16:59
Draft visualization of Gov 2001 course
{
"name": "Gov 2001: Advanced Quantitative Research Methodology",
"children": [
{
"name": "Problem of Inference",
"children": [
{
"name": "Probability",
"children": [
{"name": "P(y|M) = P(known|unknown)", "size": 10},
@PMeinshausen
PMeinshausen / CourseStructure.json
Last active December 20, 2015 17:09
Draft visualization(s) of Gov 2001
{
"name": "Gov 2001: Advanced Quantitative Research Methodology",
"children": [
{
"name": "Problem of Inference",
"children": [
{
"name": "Probability",
"children": [
{"name": "P(y|M) = P(known|unknown)", "size": 10},
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>mds venn.js example</title>
</head>
<body>
<div class="mds"></div>
</body>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>mds venn.js example</title>
</head>
<body>
<div class="mds"></div>
</body>
{
"name": "Gov 2001",
"children": [
{
"name": "The Basics",
"children": [
{
"url": "http://projects.iq.harvard.edu/gov2001",
"name": "Course Overview",
"size": 104,
{
"name": "Gov 2001",
"children": [
{
"name": "The Basics",
"children": [
{
"url": "http://projects.iq.harvard.edu/gov2001",
"name": "Course Overview",
"size": 104,
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://d3js.org/d3.v2.js"></script>
<style type="text/css">
svg {
font-family: "Helvetica Neue", Helvetica;
}
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://d3js.org/d3.v2.js"></script>
<style type="text/css">
svg {
font-family: "Helvetica Neue", Helvetica;
}
@PMeinshausen
PMeinshausen / _.md
Created April 7, 2014 05:05
boxChart Prototype