v0.4.4

@markmarkoh markmarkoh released this Jan 29, 2016 · 52 commits to master since this release

New in 0.4.4

updateChoropleth now accepts a second parameter (an object). Currently the only key looked for is reset, which will reset the map to it's default state. All fill colors will be set to the defaultFill, and any corresponding data associated with the geography will be removed.

Example usages:

The following will reset the entire map to the defaultFill and update CA to be filled green.

map.updateChoropleth({CA: 'green'}, {reset: true})

The following will reset the entire map to defaultFill

map.updateChoropleth(null, {reset: true})

The following will reset the entire map to defaultFill, but update the corresponding data of NY.

map.updateChoropleth({NY: {numberOfVoters: 55452}}, {reset: true})

Downloads