Skip to content

Conversation

@noameyal
Copy link

Allows numerical subunits in updateChoropleth and reloads subunits that had data previously but don't in the new data being passed to updateChoropleth.

Right now, subunits with numerical IDs (such as maps of US counties) cause an error when trying to run updateChoropleth because they're not valid CSS selectors. CSS.escape() escapes numbers to be used as selectors.

Also, if there is data for a subunit but you try to run updateChoropleth with new data that doesn't include that subunit it doesn't update its data to become blank, leaving some side-effects if you try to access their current fill colour, which updating them to be empty prevents.

Allows numerical subunits in updateChoropleth and reloads subunits that had data previously but don't in the new data being passed to updateChoropleth.
@gieoon
Copy link

gieoon commented May 9, 2020

I'm currently running updateChoropleth() to reset values, but data is not updating to become blank. Data is for almost all countries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants