Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to create a choropleth of the world using d3?
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COThe reason the world map you found says it's not recommended for choropleths is because it's a mercator projection. The problem with this projection is that it distorts the areas; northernmost and southernmost regions appear disproportionately larger than regions near the middle. The page you found essentially claims that coloring each country based on some metric is a bit like comparing apples and oranges, because your audience might be mislead by the disproportionate sizes of regions and make some wrong assumptions about the data being represented by the colors.
      singulars
    2. COThat's not to say that there are any technical issues preventing you from being able to use that world map to create a choropleth map, but you have to be careful about the claims you're making with it. I don't know about any projections that maintain proportionality for the entire world without introducing other kinds of distortions. There are all kinds equal-area of projections described [on this page](http://en.wikipedia.org/wiki/Map_projection#Equal-area), but they introduce other kinds of distortions. And... producing an SVG of one of those projections is probably not going to be easy.
      singulars
    3. CO@meetamit thanks. Yeah, I understand that. So even if I wanted to use that map, or another, where do I get the world equivalent of "../data/us-states.json"? Do I have to generate that myself? I guess I thought D3 had that kind of thing available as a plug-in or something. Seems like http://jvectormap.com/ is the easier way to go for my purpose.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload