This iteration of a general purpose world map (see the previous attempt) adds coloring according to the color classes defined in Natural Earth's dataset, making it more like a political map.
The mapcolor7
property is used in conjunction with a desaturated version of d3's schemeCategory10
scale.
xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<title>World map VI</title>
<link type="text/css" href="index.css" rel="stylesheet"/>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/d3-selection-multi.v0.4.min.js"></script>
<script src="https://d3js.org/d3-geo-projection.v2.min.js"></script>
<script src="//d3js.org/topojson.v2.min.js"></script>
</head>
<body>
<svg></svg>
<script src="index.js"></script>
</body>
</html>
https://d3js.org/d3.v4.min.js
https://d3js.org/d3-selection-multi.v0.4.min.js
https://d3js.org/d3-geo-projection.v2.min.js
https://d3js.org/topojson.v2.min.js