feat: Add US location name lookup choropleth, scattergeo traces by camdecoster · Pull Request #7731 · plotly/plotly.js
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 2k
Open
camdecoster wants to merge 7 commits intomasterfrom
Open
feat: Add US location name lookup choropleth, scattergeo traces#7731
camdecoster wants to merge 7 commits intomasterfrom
feat: Add US location name lookup choropleth, scattergeo traces#7731
camdecoster wants to merge 7 commits intomasterfrom
Conversation
Copy link
Contributor
Description
Add USA location name lookup for locationmode: "USA-states" in choropleth, scattergeo traces.
Closes #7437.
Changes
- Add list of USA location names
- Add USA location name lookup to geo location utilities
- Update attribute description
- Update test to use new lookup
Testing
- Be on main
- Open test/image/mocks/geo_choropleth-usa.json
- Replace the 'TX' location with 'Texas'
- Run plotly.js devtools with
npm start - Open the geo_choropleth-usa mock
- Note that Texas isn't showing in the choropleth
- Discard changes
- Switch to this branch
- Reload the mock (which has been updated in this PR with the above change)
- Note that Texas is showing in the choropleth
Notes
- This is a simple string comparison with no regex. Regex could be used in the future.
- Washington DC has a few entries to cover potential versions of the location name
camdecoster added 5 commits
March 23, 2026 09:03
camdecoster
marked this pull request as ready for review
camdecoster added 2 commits
March 23, 2026 12:28This 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