Thanks to visit codestin.com
Credit goes to github.com

Skip to content

add Puerto Rico and other territories to U.S. states geo choropleth #3636

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

Open
yimej opened this issue Mar 14, 2019 · 12 comments
Open

add Puerto Rico and other territories to U.S. states geo choropleth #3636

yimej opened this issue Mar 14, 2019 · 12 comments
Labels
feature something new P2 considered for next cycle

Comments

@yimej
Copy link

yimej commented Mar 14, 2019

I'd like the option of adding U.S. territories (specifically Puerto Rico) to the U.S. states choropleth, especially in plotly.js. Ideally, the territories would float below the U.S. map similarly to Alaska and Hawaii. Puerto Rico should especially be added because it's so close to becoming a state. For people who only need the 50 states, it should be an option to include or exclude different territories.

I've asked if it's possible twice within the plotly community forums and have also researched on stackoverflow and elsewhere online--seems like this feature does not exist yet.

@antoinerg antoinerg added the feature something new label Mar 14, 2019
@antoinerg
Copy link
Contributor

Thank you @yimej for your interest in plotly.js and suggesting this feature! I don't have time to look at this at the moment, but I agree it would be useful to display all the territories and states in one compact figure.

@yimej
Copy link
Author

yimej commented Mar 15, 2019

Is there a possible ETA on when this would be looked at / worked on? I love using Plotly at work and find the interactive features especially useful. Would like to avoid using some other library to render Puerto Rico on my choropleths and have them look out of place next to the rest of my pretty Plotly visualizations!

@antoinerg
Copy link
Contributor

It seems like the following package implements the requested feature: https://github.com/rveciana/d3-composite-projections . Unfortunately, it dropped support for d3v3 since version 0.4.0. Either we backport the albersUsaTerritories projection into 0.4.0 or wait for Plotly to upgrade to d3v4.

@yimej
Copy link
Author

yimej commented Mar 15, 2019

Could it be added as an option for locationmode or scope?

@etpinard
Copy link
Contributor

Related #1259

@etpinard etpinard changed the title Feature request: Add Puerto Rico and other territories to U.S. states choropleth Feature request: Add Puerto Rico and other territories to U.S. states geo choropleth May 9, 2019
@edonatep
Copy link

Any updates on this?

@felixvelariusbos
Copy link

Adding a bump to this; any update on this, or workaround? @antoinerg

Was hoping to use Plotly for a project, but Puerto Rico needs to be on the map for it.

@DustinCai
Copy link

Also adding a bump, are there any updates on this?

@DustinCai
Copy link

Is there a possible ETA on when this would be looked at / worked on? I love using Plotly at work and find the interactive features especially useful. Would like to avoid using some other library to render Puerto Rico on my choropleths and have them look out of place next to the rest of my pretty Plotly visualizations!

Were you able to find a solution for this?

@gvwilson gvwilson self-assigned this Jun 11, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson changed the title Feature request: Add Puerto Rico and other territories to U.S. states geo choropleth add Puerto Rico and other territories to U.S. states geo choropleth Aug 8, 2024
@gvwilson gvwilson added the P2 considered for next cycle label Aug 8, 2024
@gvwilson gvwilson assigned archmoj and gvwilson and unassigned archmoj and gvwilson Aug 15, 2024
@gvwilson
Copy link
Contributor

recent switch to maplibre should have made this possible

@rl-utility-man
Copy link

rl-utility-man commented May 5, 2025

recent switch to maplibre should have made this possible

@gvwilson Is there an example available of how to make this work in plotly.py or documentation of the parameter I need to use? The comment above says we need to use the "albersUsaTerritories projection" which appears to be implemented as a .js file and there's an obvious way to choose projection_type from a preset list of projections but albersUsaTerritories is not one of them.

@gvwilson
Copy link
Contributor

gvwilson commented May 5, 2025

I'll tag in @camdecoster on this one - he's the expert…

@gvwilson gvwilson reopened this May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P2 considered for next cycle
Projects
None yet
Development

No branches or pull requests

9 participants