0

Reposted from community.plotly.com.

Basically, I’m making a Scatter plot filterable by state, and when I select, for example, Alabama, I want only the state of Alabama to show up, big and centered on the page - removing the rest of the United States. I was thinking of using either locations or geojson to accomplish this, but I’m not sure how I would use those in the way I wanted.

Current view of all the states

Current view of Alabama

Mock-up of what I want the state view to look like

Edit:

Reproducible code

I've tried using locations = [state_abbrv], but that just removes all the points and puts one point in the center of the map, like this.

0 Answers0