This page lists significant changes introduced in releases of d3-geomap.
unitName function which tests that the property to be used as the unitId is defined, before manipulating it and returning it. Fixes issue #58.This release introduces several changes that are backwards incompatible. On the plus side d3-geomap can now be imported via import or require from other npm modules. Many thanks to Dylan Praul for his substantial contributions.
import or require.d3.geomap.choropleth to d3.choropleth.d3-geomap and to the JavaScript object as d3.geomap.colorbrewer object, which provided color scales. Instead d3-scale-chromatic, which is included in D3, can be used.d3-geomap CSS class must be added to map elements for default styling.draw function now only accepts a single argument, the map selection.forEach instead of ES6 for of to avoid using polyfill to support older browsers.d3.geomap was originally written in CoffeeScript. For version 1 I ported it to JavaScript or more specifically the EcmaScript specifications supported by babeljs.
In an effort to simplify the code and make it more readably and maintainable, I refactored the library internally. The public facing API stayed mostly the same, except for the changes listed below.
svg accessor method into an attribute in d3.geomap.zoomMax accessor to zoomFactor.title accessor to unitTitle.data_by_id, selection, and private attributes from d3.geomap.choropleth.duration and valueScale accessors to d3.geomap.choropleth.colorScale and extend attributes to d3.geomap.choropleth.legend accessor can now be called with an object having width and height attributes to set the legend dimensions.