Datamade 2026 Code Challenge Submission#9
Open
achamor1 wants to merge 9 commits intodatamade:mainfrom
Open
Conversation
…nctions, and enable pop-up on mouseover
…stency and legibility
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
My submission for the DataMade 2026 Code Challenge
Implemented
get_num_permits()forCommunityAreaSerializer()to return the number of permits per community area for a given year.Added
getPercentageOfPermits()helper function to calculate what percentage of the citywide total each community area has for a given year.Implemented
getColor()to shade each community area by calculated permit volume (split into quartiles).Implemented
setAreaInteraction()and added a pop-up functionality to display the permit data statistics per community area.Added display for citywide total permits and maximum permits in a single community area for a given year.
Added accessibility improvements: semantic HTML, aria-live loading state, error state, map legend, and keyboard-accessible popups.
Includes a test
Demo
Notes
Added a map legend for clarity and to better align with what I've seen on other DataMade projects.
Testing Instructions
Project setup
docker compose build.docker compose run --rm app python manage.py loaddata map/fixtures/restaurant_permits.json map/fixtures/community_areas.json.docker compose up.http://localhost:8080.Running tests
docker compose -f docker-compose.yml -f tests/docker-compose.yml run --rm app.CommunityAreaobjects for Beverly and Lincoln Park andRestaurantPermitobjects for a given year./map-data/endpoint returns correct permit counts percommunity area for a given year (In this case, 2 & 3 permits respectively for Beverly and Lincoln Park in 2021).