Skip to content

Instantly share code, notes, and snippets.

View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
svg {
overflow: visible;
}
path {
View README.md

Swizzling! (Or pandas DataFrame "reshaping" / "pivoting" / "(un)stacking".)

Click and drag the i,j,k in the upper right to reorder. Click anywhere else to donate to ACLU or CAIR. Refresh for random dimensions.

One can imagine more spreadsheety stuff, extending to 4D arrays and higher, and aggregating/slicing/collapsing/folding along different dimensions.

No, I'm not at all sure I'm using the term "swizzle" correctly. I don't understand matrices.

View README.md
View .block
height: 960
@tophtucker
tophtucker / .block
Last active Jan 15, 2017 — forked from mbostock/.block
CMYK Wave Motion
View .block
license: gpl-3.0
@tophtucker
tophtucker / .block
Last active Apr 26, 2019
Trump support vs. distance from major city
View .block
license: gpl-3.0
@tophtucker
tophtucker / .block
Last active Mar 12, 2017 — forked from mbostock/.block
Zoomable Icicle (d3 v4)
View .block
license: gpl-3.0
You can’t perform that action at this time.