A collection of d3 examples ranging from simple and illustrative to just plain silly
Examples
Fun
- Trippy Sin Waves (try the arrow keys and ‘a’ and ‘d’ to change parameters)
- Square Circle Illusion pt. 2 (code improvements thanks to Mike Bostock)
- Square Circle Illusion (static version, Mike Bostock’s version)
- Chernoff smileys (randomly generated Chernoff faces with 4 variables)
SVG Concepts
- viewBox and transformations (programmatically getting viewBox coordinates of a transformed object)