block by HarryStevens f6e9003562bfe454a8f267f62cb2cf4a

Annotations with Swoopy Drag for Scatter Plot

Full Screen

Use swoopy drag to annotate your scatter plot in d3.js.

Drag the annotation points around the page. When you’re happy with their locations, type copy(annotations) in the console, and paste the clipboard into your var annotations.

For a full tutorial, visit the swoopy drag page.

index.html

annotations.js

d3.swoopyDrag.js

data.csv