I’m trying to use a custom JSON file http://brenocon.com/geocode/cbsa.tiger2013.json.gz, for the following plotly express chart:
fig = px.choropleth_mapbox(df, geojson=MSA_json, locations='CBSA', color='Employment',
color_continuous_scale="Viridis",
range_color=(0, 12),
mapbox_style="carto-positron",
zoom=3, center = {"lat": 37.0902, "lon": -95.7129},
opacity=0.5,
labels={'Employment':'Employment By Industry'}
)
However, it seems to run infinitely. I think I’m reading in my json wrong since it has , i’m using:
with open(r'C:\Users\Andrew\Documents\PythonScripts\US Data Dashboard\cbsa.tiger2013.json') as json_file:
MSA_json = json.load(json_file)
Appreciate any help, thanks!