Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@AlainRo
AlainRo / README.md
Last active October 4, 2017 13:39
a Barchart of brushes

a Barchart of brushes

Brushes can be used to draw a barchart. This gives an eady way to input or adjust values with the mouse !!!

@AlainRo
AlainRo / README.md
Last active October 4, 2017 13:36
BarChart with draggable bars to input/adjust data values (Horizontal + Vertical)

Barchart as an input device

Brushes can be used to draw a barchart. This gives an easy way to input or adjust values with the mouse !!!

The d3 brush is a complex piece of logic taking care of events and user feed-backs. Among other characterics it exposes a nice selection rectangle which can be used as a bar !!!

2D-brushes come in two flavors see official API v4 doc

  • d3.brushX()
@AlainRo
AlainRo / README.md
Last active October 4, 2017 13:39
Difference Chart v4
@AlainRo
AlainRo / README.md
Last active October 4, 2017 13:40
d3v4 - zoom and drag circles - drag adjusted for zoom
@AlainRo
AlainRo / README.md
Last active October 4, 2017 13:41
Brush & Zoom
@AlainRo
AlainRo / .block
Last active February 22, 2018 16:32
d3js Exercice 1 - number formats
license: mit
@AlainRo
AlainRo / README.md
Last active March 11, 2018 12:24
Force Directed with Voronoi selection

Force Directed with Voronoi selection

This is a fork of mbostock's block: Force-Directed Graph where I've added a voronoi overlay. This could have a practical use by not having to click directly on a node in order select it and drag it.



From the original block:

This simple force-directed graph shows character co-occurence in Les Misérables. A physical simulation of charged particles and springs places related characters in closer proximity, while unrelated characters are farther apart. Layout algorithm inspired by Tim Dwyer and Thomas Jakobsen. Data based on character coappearence in Victor Hugo's Les Misérables, compiled by Donald Knuth.

@AlainRo
AlainRo / .block
Last active February 20, 2018 15:51
D3 Source Treemap
license: mit
@AlainRo
AlainRo / .block
Last active February 28, 2018 13:03
d3js Exercice 2 - scales
license: mit
@AlainRo
AlainRo / README.md
Last active October 10, 2017 13:56
d3js Exercice 3 - svg

d3js Exercice 3 - svg