Skip to content

Instantly share code, notes, and snippets.

@larskotthoff
larskotthoff / README.md
Last active August 29, 2015 14:24 — forked from mbostock/.block

These donut charts are constructed from a CSV file storing the populations of various age groups in different states. (As a practical note, a normalized stacked area chart facilitates easier comparison of values.) The chart employs a number of D3 features:

@larskotthoff
larskotthoff / README.md
Last active August 29, 2015 14:25 — forked from mbostock/.block
@larskotthoff
larskotthoff / README.md
Last active August 29, 2015 14:26 — forked from mbostock/.block
Vector Tiles
<!DOCTYPE html>
<html lang="en">
<head>
<style type="text/css">
.axis path,
.axis line {
fill: none;
stroke: black;
shape-rendering: crispEdges;
@larskotthoff
larskotthoff / CREDITS
Last active March 8, 2017 23:41 — forked from GerHobbelt/.gitignore
d3.js: force layout; click to group/bundle nodes
Code derived from the d3.js 'force' example:
The miserables.json file contains the weighted network of coappearances of
characters in Victor Hugo's novel /Les Miserables/. Nodes represent characters
as indicated by the labels, and edges connect any pair of characters that
appear in the same chapter of the book. The values on the edges are the number
of such coappearances. The data on coappearances were taken from D. E. Knuth,
"The Stanford GraphBase: A Platform for Combinatorial Computing",
Addison-Wesley, Reading, MA (1993).