In the commented out example of how to use the code it only refers to topology (and not also the geometry) variable: - var features = cartogram(topology);