plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

Plotly express shows Invalid property latitude for choropleth map plot

Open bhavana-khandare opened this issue 4 years ago • 2 comments

I am using these dataset " dataset tempat perlancongan Malaysia.csv" . In that I'm Passing the latitude and longitude for plotting the plot plot for spatial coordinate vs numerical feature . I am giving the Input as follows : import plotly.express as px print(df) fig = plotly.express.choropleth(df, lat='Latitude', lon='Longitude', color ='Nama Tempat')

fig.show()

error I got =

ValueError: Invalid property specified for object of type plotly.graph_objs.Choropleth: 'lat' Screenshot from 2022-09-06 12-16-52

bhavana-khandare avatar Sep 07 '22 06:09 bhavana-khandare

Hi @bhavana-khandare. The Choropleth graph object has neither lat nor long as a property.

For more information, see these examples: https://plotly.com/python/choropleth-maps/

or in the Figure Reference: https://plotly.com/python/reference/choropleth/#choropleth

AaronStiff avatar Mar 18 '23 15:03 AaronStiff

Hi - we are tidying up stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for a while, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. If you'd like to submit a PR, we'd be happy to prioritize a review, and if it's a request for tech support, please post in our community forum. Thank you - @gvwilson

gvwilson avatar Jul 11 '24 14:07 gvwilson