All examples By author By category About

Andrew-Reid

D3v3 Force Layout with Minimum Convex Polygon

A quick example of a minimum convex polygon on a force layout (v3).

Based on this question here, which basically just adds Mike's example convex polygon block to a basic force layout.

I could not quite change the x and y accessor functions, so had to use an intermediate array of vertices.

Here is a d3v4 example.