Skip to content

Instantly share code, notes, and snippets.

@cpbotha
cpbotha / dropshadow.js
Last active March 20, 2025 01:02
d3.js drop shadow example
// d3.js drop shadow example
// put together by http://charlbotha.com/
var items = [
{x : 50, y : 10},
{x : 100, y: 170},
{x : 320, y: 70}
];
// we can increase this, everything will scale up with us
@cpbotha
cpbotha / README.md
Last active May 13, 2020 12:23
Simple example of reusable d3 plugin.

This as-simple-as-possible example tries to demonstrate Mike Bostock's pattern "Towards Reusable Charts" http://bost.ocks.org/mike/chart/ for d3 plugins that are composite shapes.