Here is a little demo of Voronoi Partitions I made 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.