This example shows how to use svg-path-properties and d3-marching-squares to draw isolines on a map and label them each certain number of pixels.
There are some issues left, such as avoiding label overlapping.
Read this other block for explanations about the used data and the isolines.