[BUG]: Points don't appear on scatter map when viewed on a mobile device as a standalone HTML file
@emilykl já está trabalhando nisso.
Desde 28/1/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Description
I would like to be able to view a standalone .html copy of a Plotly scatter map on my phone. However, when I attempt to do so, I don't see any of the scatter points on the map (though the legend and layers load OK). Fortunately, the map loads fine when I first upload it to GitHub pages and view it from there; however, for debugging and sharing purposes, it would be very helpful to be able to view the points directly from a standalone HTML file.
Screenshots/Video
The HTML copy of the map (created as 'index.html' by the code shown below) loads fine on my laptop:
However, when viewed on a mobile device, none of the points are visible:
Steps to reproduce
The 'index.html' file shown in the previous two screenshots was created by the following code:
# (Almost all of this code comes from the first scatter map example
# found at https://plotly.com/python/tile-map-layers/ .)
import pandas as pd
us_cities = pd.read_csv("https://raw.githubusercontent.com/plotly/datasets/master/us-cities-top-1k.csv")
import plotly.express as px
fig = px.scatter_map(us_cities, lat="lat", lon="lon", hover_name="City", hover_data=["State", "Population"],
color_discrete_sequence=["fuchsia"], zoom=3, height=300)
fig.update_layout(map_style="open-street-map")
fig.update_layout(margin={"r":0,"t":0,"l":0,"b":0})
fig.write_html('index.html', include_plotlyjs='cdn')
I then copied the 'index.html' file created by this code onto my phone, then loaded it within my mobile Chrome app.
- Linguagem predominante
- Python
- Estrelas
- 18.8k
- Forks
- 2.8k
- Merge médio
- 16h 26min
- PRs com merge (30d)
- 21
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de plotly/plotly.py
-
P3 size: 1 task
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
-
bug P1
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 68/100
-
feature P3
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
-
feature P3
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 35/100
Todas as issues de plotly/plotly.py
Issues semelhantes
-
link-check link-check:sphinx-theme
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
OpenHands/extensions#626 · 1 comentário ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
CSCfi/sd-search-api#39 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100