Skip to content

Instantly share code, notes, and snippets.

@explunit
explunit / keybase.md
Created October 6, 2017 13:54
keybase

Keybase proof

I hereby claim:

  • I am explunit on github.
  • I am stevepatches (https://keybase.io/stevepatches) on keybase.
  • I have a public key ASAApecng7SOopbPBEOmJmVJH7gLIO42u8zCLDDW16N_UAo

To claim this, I am signing this object:

@explunit
explunit / README.md
Created June 30, 2014 22:11
d3.layout.partition workaround

Workaround for issue described in this example, uses Lodash cloneDeep to make each chart have it's own copy of the data.

@explunit
explunit / README.md
Last active August 29, 2015 14:03 — forked from mbostock/.block
d3.layout.partition issue

Demo of how the properties added by d3.layout.partition are shared between visualizations referencing the same underlying data. Both charts should resize, but instead the first chart adopts the ring proportions of the second chart when the .arc function is called again.

@explunit
explunit / README.md
Created September 2, 2013 14:49
D3 browser memory usage test

D3 browser memory usage test

@explunit
explunit / README.md
Created September 2, 2013 14:19
Memory leak test with repeating node IDs

Using null IDs or ensuring that they repeat across iterations seems to stop the IE leak.

@explunit
explunit / README.md
Created September 2, 2013 14:07
Memory leak test with add/remove of svg circles

Memory leak test with add/remove of svg circles. Appears to leak on IE9 and IE10.

@explunit
explunit / README.md
Created July 25, 2013 18:20
Chained transitions between points on a path/line
@explunit
explunit / README.md
Created July 13, 2013 01:14
Use Inkscape shapes in D3.js tree diagram
@explunit
explunit / README.md
Created May 18, 2013 04:31
D3.js tree with "drag near" logic

Use a larger transparent shape as an alternative to intersection or collision detection when dragging a node. Sparked by this StackOverflow question

@explunit
explunit / README.md
Created January 28, 2013 21:29
D3.js custom shapes in single append

Use D3.js to add multiple shapes in a single append, similar to how you would create a bunch of rectangles