This is the background map section of the gallery. If you want to know more about this kind of chart, visit data-to-viz.com. If you're looking for a simple way to implement it in d3.js, pick an example below.
not necessary thanks to leaflet.
Input data for maps is
geoJson format. D3.js works very
well to display this kind of information using
The most basic background map you can do in d3.js. Keeping
only the core code.
Input data format: geoJson
Shows how to switch from one projection to another thanks to the geo-projection plugin.
Leaflet.jsopen source library
Canvas is an alternative to SVG. Its main advantage is that it avoids to overload the dom and thus often leads to better browser performance. Here are examples showing how to build background maps using d3.js and canvas:
A few blocks with more complicated codes to showcase the possibility