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

Feature Suggestion: Enable USA Counties as Subset of States #44

Open
sbonds opened this issue Apr 2, 2020 · 8 comments
Open

Feature Suggestion: Enable USA Counties as Subset of States #44

sbonds opened this issue Apr 2, 2020 · 8 comments

Comments

@sbonds
Copy link

sbonds commented Apr 2, 2020

Similar to how when the USA states appear as the selection choices when the "US" region is chosen, would it be difficult to add another level of selection for each state and have the counties appear as choices for that state? The raw data for that appears to be in the NYTimes data set.

Thanks for the excellent work on this incredibly helpful and open site.

@jthayilblanchard
Copy link

Would second this request. I think there are 700 separate outbreaks in the US as each metropolitan area takes different measures. I'd love to see how King County, WA (Seattle) has gone differently than NY, for example, over the last month.

@sbonds
Copy link
Author

sbonds commented Apr 3, 2020

I made a mock-up of one working method here:

http://covidtrends.covid19.sbonds.org/

The UI is horrific, but it works. The code is in the linked pull request #46

@sbonds
Copy link
Author

sbonds commented Apr 3, 2020

A testament to the flexibility of the methods that Aatish chose-- here's your comparison on the copy I made:

http://covidtrends.covid19.sbonds.org/?region=US+Counties&location=New+York%2FNew+York+City&location=Washington%2FKing

@sbonds
Copy link
Author

sbonds commented Apr 3, 2020

Actually... use caution trusting the data my fork produces. It seems like there's a problem in there somewhere as some county totals don't add up correctly

@jthayilblanchard
Copy link

jthayilblanchard commented Apr 3, 2020 via email

@sbonds
Copy link
Author

sbonds commented Apr 3, 2020

The bad data I was seeing was caused by a name collision when two or more states had a county of the same name. I've fixed it by indexing the data using the combined state + county instead of just the county name.

Your other suggestion is interesting but probably should be its own issue/feature suggestion rather than riding along with this one.

@bsmith1180
Copy link

I took a crack at this in PR #62, which can be viewed here:
https://bsmith1180.github.io/covidtrends/

@aatishb
Copy link
Owner

aatishb commented Apr 9, 2020

Suggesting a different organization for this: What if when US is selected in the region selector, we display an addition selector beneath it that allows you to select the state? This way we don't clutter the region selector, and the fine-grained info only becomes available to those looking for it.

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

No branches or pull requests

4 participants