plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

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

Open yimej opened this issue 6 years ago • 12 comments

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.

yimej avatar Mar 14 '19 15:03 yimej

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.

antoinerg avatar Mar 14 '19 20:03 antoinerg

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!

yimej avatar Mar 15 '19 14:03 yimej

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.

antoinerg avatar Mar 15 '19 18:03 antoinerg

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

yimej avatar Mar 15 '19 18:03 yimej

Related https://github.com/plotly/plotly.js/issues/1259

etpinard avatar Mar 18 '19 15:03 etpinard

Any updates on this?

edonatep avatar Jul 17 '20 18:07 edonatep

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.

felixvelariusbos avatar Jul 26 '22 20:07 felixvelariusbos

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

DustinCai avatar Jan 11 '24 00:01 DustinCai

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?

DustinCai avatar Jan 20 '24 00:01 DustinCai