Skip to content

Instantly share code, notes, and snippets.

@dogobox
dogobox / README.md
Created April 29, 2016 14:33 — forked from syntagmatic/README.md
Nutrient Parallel Coordinates III
@dogobox
dogobox / .block
Created April 29, 2016 14:19 — forked from mbostock/.block
Kernel Smoothing
license: gpl-3.0
@dogobox
dogobox / .block
Created April 29, 2016 14:16 — forked from mbostock/.block
"Elbow" Dendrogram
height: 2200
license: gpl-3.0
@dogobox
dogobox / .block
Created April 29, 2016 14:14 — forked from mbostock/.block
A Bar Chart
height: 930
license: gpl-3.0
@dogobox
dogobox / .block
Created April 29, 2016 14:09 — forked from mbostock/.block
Percentage Change
license: gpl-3.0
@dogobox
dogobox / .block
Created April 29, 2016 14:08 — forked from mbostock/.block
Line with Missing Data
license: gpl-3.0
@dogobox
dogobox / README.md
Created April 29, 2016 14:04 — forked from mbostock/README.md
Time of Day

This graph plots the observed rate of tweets for Eric Fischer’s Twitter feed over the period from January 8, 2015 through November 30, 2015.

This graph uses a time scale to plot time-of-day. Time scales are normally used to plot absolute time: a specific moment on a specific day in a specific year. Here, though, we’re interested in studying the daily pattern, so data from many days is collapsed onto a single day. (That day happens to be January 1, 1900, but the choice is arbitrary as long as we’re consistent.)

One wrinkle here is that the data is stored in UTC, but we want to view the pattern in Eric’s local time. To do this, we offset the time by seven hours, since the majority of the data was collected during Pacific Daylight Time (-0700). However, this is incorrect because some of the data was collected during Pacific Standard Time (-0800). Since the local time zone offset changed during data collection,

@dogobox
dogobox / README.md
Created April 29, 2016 10:15 — forked from enjalot/README.md
matrix: rotations

Matrix: rotations

Extending http://ncase.me/matrix/ with SVG and d3.js, with a focus on 2D Rotation matrices.

I want to illustrate the relationship between angles and the matrix representation of a rotational transformation.

I'm still working on porting all of the original interactions, but I'm quite pleased with the work in progress.

Additional inspiration for Matrix UI (namely the coloring) comes from Max Goldstein's excellent Invitation to Another Dimension

@dogobox
dogobox / README.md
Created April 29, 2016 10:11 — forked from enjalot/README.md
matrix: reboot

Matrix: reboot

Remaking http://ncase.me/matrix/ with SVG and d3.js

This technical experiment currently lacks the finesse and wistfulness of the original. I'm most inspired by the genius (yet obvious in retrospect) technique of showing both the original point and the transformed point connected by a line. Even the idea to use a letter is brilliant to me: it is familiar and intuitive, it allows for discrete sampling without introducing other concepts like pixels.

My hope is that by going through the exercise of making it more data-driven I can expand on the concept to introduce things like rotation. Perhaps using d3 will also make the code more concise, but that's not certain as the original is relatively short.

I'm still working on porting all of the original interactions, but I'm quite pleased with the work in progress.

building-blocks

@dogobox
dogobox / README.md
Created April 29, 2016 10:09 — forked from enjalot/README.md
csv number fingerprint

Show up to the first 500 rows of a csv and color cells that are numbers.

Built with blockbuilder.org