This example renders a loose enclosing hull around a scattered set of points using a rounded Catmull-Rom curve. A strict convex hull is computed using D3.polygonHull, offset by a specified amount, and then interpolated with a closed curve.
See also the same basic approach using straight segments and circular arcs: Rounded Enclosing Hull.