Skip to content

Instantly share code, notes, and snippets.

@darrenjaworski
darrenjaworski / OSCN 1.txt
Last active December 16, 2015 15:39
OSCN scraper
#!/usr/bin/env python
import scraperwiki
import lxml.html
counter = 1
casetype = 'cf'
county = 'Tulsa'
year = 2013
@darrenjaworski
darrenjaworski / README.md
Last active December 16, 2015 22:49
Hierarchical Bar Chart

This is a hierarchical bar chart of the OK state budget. D3 allowed a very simple implementation from a JSON of budget data used in the sunburst partition.

@darrenjaworski
darrenjaworski / README.md
Last active December 17, 2015 03:38
Categorical filter on sortable table Google Chart API

This is a sortable table with a categorical filter made with Google Charts API. I probably should have used a query from a fusion table. Will next time.

@darrenjaworski
darrenjaworski / README.md
Last active April 2, 2018 18:49
Animated scatterplot through time

This is my initial attempt to replicate a NY Times graphic on the rising debt and cost of college. This is Oklahoma centric data. Circle size is proportional to total enrollment. X axis is tuition and fee costs and the Y axis is average student debt for first time full time students.

@darrenjaworski
darrenjaworski / index.csv
Last active December 17, 2015 17:39
<a href> pie chart segments
id percent url
journalism 33 http://darrenjaworski.com/journalism.html
programming 33 http://darrenjaworski.com/programming.html
data 33 http://darrenjaworski.com/data.html
@darrenjaworski
darrenjaworski / index.html
Last active December 17, 2015 17:39
Bar Chart - Tornadic Activity
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path,
.axis line {
@darrenjaworski
darrenjaworski / README.md
Created June 7, 2013 22:00
TOPOJSON from shapefile - OK Census tracts
@darrenjaworski
darrenjaworski / README.md
Created June 7, 2013 22:58
TOPOJSON from shapefile - OK State Leg House Districts
@darrenjaworski
darrenjaworski / README.md
Last active December 18, 2015 08:29
TOPOJSON - OK census tract median income

This is a continuation of previous post. This map is a replica of a technique by Mike Bostock, who all love and adoration must go to. Census tracts are from the Census Bureau as well as from their "factfinder" monstrosity. I most likely have messed up the state plane coordinates since this was a practice run. As usual, feel free to contact me with complaints, questions, or hate mail.

@darrenjaworski
darrenjaworski / README.md
Last active December 18, 2015 09:39
TOPOJSON points - OK Prisons

Latitude and longitude projection of Oklahoma prisons. Blues are public prisons ranging from community corrections (light) to maximum security (dark). Yellow are private prisons. Radius is proportional to the occupancy of the prison. Timeline, more prisons and data fields will be added shortly. Fixed the data from being killed thanks to the help of Mike Bostock.