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

Add disadvantaged communities choropleth map #100

Merged
merged 4 commits into from
Apr 12, 2023

Conversation

jacobtylerwalls
Copy link
Contributor

Overview

Add a choropleth map that colorizes states according to the % of their population living in a disadvantaged census tract as determined by the Climate and Economic Justice Screening Tool.

Closes #92

Demo

Screenshot 2023-04-10 at 3 45 03 PM

Testing Instructions

  • scripts/server
  • click "Disadvantaged communities"

Checklist

  • fixup! commits have been squashed
  • CHANGELOG.md updated with summary of features or fixes, following Keep a Changelog guidelines
  • README.md updated if necessary to reflect the changes
  • CI passes after rebase

@github-actions
Copy link

github-actions bot commented Apr 10, 2023

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ ACTION actionlint 1 0 0.02s
✅ BASH shfmt 11 0 0.0s
✅ JAVASCRIPT eslint 45 0 3.69s
✅ JAVASCRIPT prettier 45 0 2.51s
✅ JSON eslint-plugin-jsonc 4 0 0.84s
✅ JSON jsonlint 4 0 0.14s
✅ SPELL misspell 90 0 0.11s
✅ TERRAFORM terraform-fmt 5 0 0.22s
✅ YAML yamllint 5 0 0.25s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

@@ -0,0 +1,338 @@
[
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I transformed the original CSV with a pivot table (in Apple Numbers) and re-exported to CSV. I used python to dump it to JSON, and find and replace to change TRUE and FALSE to NotDisadvantaged and Disadvantaged, etc.

Copy link
Contributor

@travissouthard travissouthard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is working well, but there could be a couple of improvements (that granted could be captured in future cards)

  • Adding a tooltip to each state with their disadvantaged percentage
  • Adjusting the quartiles of the coloring to mre interestingly reflect the data. (There are no states above 75% (thankfully)

@jacobtylerwalls
Copy link
Contributor Author

I took a quick pass at adding the tooltips, but I'm a little wary of wasted motion here since we're about to refactor this all into one map in #105, so I think commenting on that card makes sense 👍.

Thanks for the review!

@jacobtylerwalls jacobtylerwalls merged commit c72f7d0 into develop Apr 12, 2023
@jacobtylerwalls jacobtylerwalls deleted the jw/disadvantaged-choropleth branch April 12, 2023 20:59
@mstone121 mstone121 mentioned this pull request Apr 19, 2023
5 tasks
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.

Create Equity Choropleth Map
3 participants