Skip to content

Instantly share code, notes, and snippets.

View evandana's full-sized avatar

Evan Dana evandana

View GitHub Profile
@evandana
evandana / d3chart.js
Created September 12, 2014 13:38
D3 Grid of Bar Charts: Sortable (one bar per cell)
// TODO: add description of this library
// TODO: add README.md
// TODO: don't allow any hovering until the entire chart is drawn and done animating
var D3Chart = function (options) {
// options not yet needed
// ----------------------------------------------------
@evandana
evandana / d3chart.js
Last active August 29, 2015 14:06
D3 Grid of Bar Charts: Sortable
// TODO: add description of this library
// TODO: add README.md
// TODO: don't allow any hovering until the entire chart is drawn and done animating
var D3Chart = function (options) {
// options not yet needed
// ----------------------------------------------------
@evandana
evandana / README.md
Last active August 29, 2015 14:06 — forked from mbostock/.block
@evandana
evandana / dummy-data.json
Last active August 29, 2015 14:06
D3 Grid of Bar Charts (negative values, no <table>) Using JSON
[
{
"a": "-1",
"b": "5",
"c": "1.35",
"d": "1187"
},
{
"a": "2",
"b": "100",
@evandana
evandana / boston-qualifier-marathons.json
Last active August 29, 2015 14:06 — forked from mbostock/.block
Sortable D3 Grid Using JSON
[
{
"rank": 1,
"name": "Boston Marathon (4\/21\/14 - Boston, MA)",
"bostonQualifiers": 11.053,
"qualifyingPercent": "35.7%"
},
{
"rank": 2,
"name": "Pocono Mountain Run For The Red Marathon (5\/18\/14 - Pocono Mountains, PA)",
@evandana
evandana / js.js
Last active December 22, 2015 22:29
Passing Parameters to Referenced Function
// show how
$('body').append('<div id="elem"></div>');
var el = $('#elem');
// this pattern makes it difficult to unit test the console.log
function someFunction1() {
var localVar1 = "a",