If you select Radial mode, a circle will be drawn and a few interspersed points will connected. This code supports arbitrary shapes by using a fast Delaunay trangulation library you can find at https://github.com/mapbox/delaunator. The key point of this example is that sometimes, something can be aesthetically pleasing, without requiring a lot of complexity.