Skip to content

Instantly share code, notes, and snippets.

@jupaneira
Last active June 23, 2023 18:59
Show Gist options
  • Save jupaneira/6c69afc57b6be64ad5904d17928b9b99 to your computer and use it in GitHub Desktop.
Save jupaneira/6c69afc57b6be64ad5904d17928b9b99 to your computer and use it in GitHub Desktop.
Colombian Voronoi Map

This is a Voronoi Map of Colombia, made with GeoJSON, D3.js and the Voronoi function of D3. It is inspired on the United States of Voronoi of Jason Davies and as he says, the idea of this map is to show:

The Department borders for the contiguous Colombian Departments have been redrawn such that all points in a state are closer to its capital than that of any other state

You can find the code here Enjoy it :) and please, reference me and this site if you want to use or share this material

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script src="//d3js.org/d3.v3.min.js"></script>
<script src="//d3js.org/topojson.v1.min.js"></script>
<script>
d3.select(self.frameElement).style("height", "950px");
</script>
<center>
<img src="voronoi_map.png">
</center>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment