Here is a little demo of Voronoi Partitions I hacked together to learn a bit of d3. Code available on github.
Click and drag a point to move it. Double click a point to delete it.
Double click anywhere else to add a new point.