i am working on data map visualization project right now
i put labels on my map with go.Scattermapbox
and i want to change font type
when i add family="Arial"
to my code all labels dissapear
how to change my font type is there any ways ?
fig.add_trace(go.Scattermapbox(
lat=city_avg_price['lat'],
lon=city_avg_price['lon'],
mode='text',
text=city_avg_price['label'].tolist(),
textposition="middle center",
textfont=dict(
size=12,
color="black",
family="Arial" # Here is my font
),
showlegend=False
))
i tried to add family="Arial"
to my textfont=dict()
but it didnt help out all the labels dissapeared
New contributor
Çağatay Bayrak is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.