yaph / d3-geomap

A library for creating geographical maps based on D3.js
https://d3-geomap.github.io/
MIT License
133 stars 45 forks source link

Legend is affected by values that don't map to a country #20

Closed yaph closed 8 years ago

yaph commented 10 years ago

Example: the population data from the World Bank includes a row for the world (id: WLD) that causes the legend to go up to the total world population thus rendering the map useless.

How to handle such data in d3.geomap? Leave it to the user or remove values that don't map to countries?

yaph commented 8 years ago

Since unit IDs can be arbitrary, this should be handled by the user, i. e. such rows need to be removed beforehand.