Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬 Access the recorded webinar.

Is there anything I can do about choropleth map having weird perimeter with connected straight lines around it


I thought it might have something to do with me using a low file size JSON map but this issue persists even with a map that I didn’t simplify on mapshaper. The two maps are that comparison

An example of the code would be helpful.

from urllib.request import urlopen
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.express as px
import pandas as pd
import json

df = pd.read_csv("adoneattempt6.csv")

with open('done.geojson') as geofile:
    geojson = json.load(geofile) 

fig = px.choropleth(df, geojson=geojson, locations='Area', color='deaths',
                           color_continuous_scale=px.colors.sequential.OrRd,
                           title = "Deaths idk",
                           scope="world",
                           featureidkey='properties.NAME_1',
                           animation_frame="Years",
                           fitbounds='locations',
                           projection='mercator'
                          )
# fig["layout"].pop("updatemenus") # toggles on and off the play button
fig.show()

Add this fig.update_geos(visible=False)
See if it will work

Yes this works thank you

This solution works thank you