This page lists significant changes introduced in releases of d3-geomap.
unitNamefunction which tests that the property to be used as the
unitIdis 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
require from other npm modules. Many thanks to Dylan Praul for his substantial contributions.
colorbrewerobject, which provided color scales. Instead
d3-scale-chromatic, which is included in D3, can be used.
d3-geomapCSS class must be added to map elements for default styling.
drawfunction now only accepts a single argument, the map selection.
forEachinstead of ES6
for ofto avoid using polyfill to support older browsers.
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.
svgaccessor method into an attribute in d3.geomap.
privateattributes from d3.geomap.choropleth.
valueScaleaccessors to d3.geomap.choropleth.
extendattributes to d3.geomap.choropleth.
legendaccessor can now be called with an object having width and height attributes to set the legend dimensions.