Number of Crimes
1500 - 2000
1000 - 1500
500 - 1000
1 - 500
Voronoi diagram analysis This sample shows how to add calculate a Voronoi diagram from a set of points, and then spatially join the Voronoi polygons with a secondary set of points to calculate aggregates. This sample generates a Voronoi diagram from police stations in Chicago, and then joins it with the location of crimes. This sample uses the open source Turf.js library to for some of the spatial calculation.