Skip to content

Instantly share code, notes, and snippets.

@IPWright83
IPWright83 / .gitignore
Created May 9, 2016 12:44 — forked from GerHobbelt/.gitignore
d3.js: force layout; click to group/bundle nodes
# Editor backup files
*.bak
*~
@IPWright83
IPWright83 / README.md
Created July 6, 2016 08:39
Focus+Context via Brushing & Zoom & Pan

This examples demonstrates how to use D3's brush component to implement focus + context zooming. Click and drag in the small chart below to pan or zoom. With the abitility to zoom and pan in the Focus view using d3.zoom behavior.

@IPWright83
IPWright83 / .block
Created August 12, 2016 08:33 — forked from nbremer/.block
Brushable Horizontal Bar Chart - III
height: 540
@IPWright83
IPWright83 / README.md
Created July 8, 2016 20:31 — forked from nitaku/README.md
Freehand drawing

A simple freehand drawing application, based on Bostock's Line Drawing gist.

Use your stylus, fingers or mouse to draw. The color of the line can be changed by interacting with the color palette, and the canvas can be cleared by clicking the trash in the upper-right corner of the UI.

The application uses two stacked SVG elements, one for the UI and one for the canvas. This is used to disable drawing when interacting with UI elements.

Unlike Bostock's example, this application maintains a DOM-independent object to store all the drawing's data (just look at the JavaScript console each time you complete a line).

Colors are from Colorbrewer's Dark2 palette.

@IPWright83
IPWright83 / .block
Created January 26, 2017 14:57 — forked from mbostock/.block
Circle Wave
license: gpl-3.0
border: no
@IPWright83
IPWright83 / .block
Last active April 19, 2017 09:15 — forked from hollasch/.block
Smooth Polygon Convex Hull
height: 960
@IPWright83
IPWright83 / .block
Last active May 9, 2017 08:31 — forked from mbostock/.block
Bar Chart
license: gpl-3.0
@IPWright83
IPWright83 / .block
Created July 31, 2017 08:57 — forked from mbostock/.block
Beeswarm
license: gpl-3.0
height: 200
@IPWright83
IPWright83 / README.md
Last active September 26, 2017 14:23 — forked from etiennecrb/README.md
d3-xyzoom demo

This plugin is a fork of d3-zoom that adds several features by separating scaling on x and y:

Scale independently along x-axis and y-axis

Constrain scale extent on zoom out to respect translate extent constraints

Apply "scale factor ratio" on user input. For instance, with a scale ratio of 0.5 on x-axis and 1 on y-axis, when user zoom with its mouse, the increase of scale factor on x-axis will only be half of the increase on y-axis.

@IPWright83
IPWright83 / .block
Last active December 1, 2017 11:06 — forked from mbostock/.block
Canvas Swarm
license: gpl-3.0