Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix updateChoropleth Issues #486

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix updateChoropleth Issues #486

wants to merge 1 commit into from

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