Demo: http://bl.ocks.org/4241134
Computes a contour for a given grid function using the marching squares algorithm. Returns the contour polygon as an array of points. The grid function takes two arguments, x and y, and returns true if the specified point is inside the contour, and false for points outside the contour. The contour plugin can also take an optional starting point [x, y] on the grid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.