Skip to content

Instantly share code, notes, and snippets.

@kenpenn
kenpenn / adams-150x.png
Last active August 29, 2015 14:22
Good People to Follow
adams-150x.png
@kenpenn
kenpenn / adams-150x.png
Last active August 29, 2015 14:23
d3 to three
adams-150x.png
@kenpenn
kenpenn / index.html
Last active January 31, 2016 01:37
styling SVG markers
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Styling SVG Markers</title>
<style id="styles">
html {
background: hsl(0, 0%, 0%);
-webkit-background-size: cover;
-moz-background-size: cover;
@kenpenn
kenpenn / README.md
Last active June 29, 2016 08:30
Canvas Force-Directed Graph
@kenpenn
kenpenn / .block
Last active July 5, 2016 01:36
Self-adjusting setTimeout loop
license: gpl-3.0
height: 500
@kenpenn
kenpenn / .block
Last active July 5, 2016 01:47
disco lights
license: gpl-3.0
height: 500
@kenpenn
kenpenn / .block
Last active July 24, 2016 22:21
D3 v3 set datum
license: gpl-3.0
@kenpenn
kenpenn / .block
Last active July 27, 2016 02:55
d3 v4 set datum
license: gpl-3.0
@kenpenn
kenpenn / README.md
Last active July 27, 2016 02:56
brush with scatterplots & sparklines

This example demonstrates how to use D3's brush component to implement focus + context zooming, with sparklines and scatterplots.

Click and drag in the small chart below to pan or zoom.

Sample data is blood pressure readings over time.

Averages for blood-pressure samples in a range are shown at the top.

Mousing over a systolic/diastolic pair highlights the pair.

@kenpenn
kenpenn / .block
Last active August 13, 2016 01:59
force simulation using translate
license: gpl-3.0