Skip to content

Instantly share code, notes, and snippets.

View deenar's full-sized avatar

Deenar Toraskar deenar

View GitHub Profile
@deenar
deenar / README.md
Last active September 24, 2015 05:16 — forked from mbostock/.block
Bubble Chart

Bubble charts encode data in the area of circles. Although less perceptually-accurate than bar charts, they can pack hundreds of values into a small space. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

@deenar
deenar / README.md
Last active September 24, 2015 17:05 — forked from mbostock/.block
Radial Reingold–Tilford Tree

The tree layout implements the Reingold-Tilford algorithm for efficient, tidy arrangement of layered nodes. The depth of nodes is computed by distance from the root, leading to a ragged appearance. Cartesian orientations are also supported. Implementation based on work by Jeff Heer and Jason Davies using Buchheim et al.'s linear-time variant of the Reingold-Tilford algorithm. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

Compare to this Cartesian layout.

@deenar
deenar / README.md
Last active February 22, 2018 19:47 — forked from mbostock/.block
Circle Packing

Enclosure diagrams use containment to represent the hierarchy. Although circle packing is not as space-efficient as a treemap, it better reveals the hierarchy. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

See also this zoomable version.

@deenar
deenar / README.md
Last active September 24, 2015 17:04 — forked from mbostock/.block
Treemap

A treemap recursively subdivides area into rectangles; the area of any node in the tree corresponds to its value. This example uses color to encode different packages of the Flare visualization toolkit. Treemap design invented by Ben Shneiderman. Squarified algorithm by Bruls, Huizing and van Wijk. Data courtesy Jeff Heer.

@deenar
deenar / README.md
Last active September 24, 2015 07:57 — forked from mbostock/.block
Sunburst Partition

A sunburst is similar to the treemap, except it uses a radial layout. The root node of the tree is at the center, with leaves on the circumference. The area (or angle, depending on implementation) of each arc corresponds to its value. Sunburst design by John Stasko. Data courtesy Jeff Heer.

@deenar
deenar / browserdetect.js
Last active September 24, 2015 08:13 — forked from billdwhite/index.html
D3 Treemap with Headers - DIV Labels
var BrowserDetect =
{
init: function ()
{
this.browser = this.searchString(this.dataBrowser) || "Other";
this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "Unknown";
},
searchString: function (data)
{
{
"children": [
{
"children": [
{
"rate": -0.4066358024691358,
"value": 769,
"name": "Black or African American, Non-Hispanic"
},
{
@deenar
deenar / README.md
Last active September 25, 2015 03:49 — forked from metmajer/README.md
Zoomable Sunburst with Labels

Zoomable Sunburst with Labels

@deenar
deenar / README.md
Last active September 26, 2015 07:46 — forked from mbostock/.block
Collapsible Tree
@deenar
deenar / README.md
Last active September 26, 2015 15:05 — forked from mbostock/.block
Cluster Dendrogram

A dendrogram is a node-link diagram that places leaf nodes of the tree at the same depth. In this example, the classes (leaf nodes) are aligned on the right edge, with the packages (internal nodes) to the left. Data shows the Flare class hierarchy, courtesy Jeff Heer.

Compare to this Cartesian layout.