Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PolarPlot: Fix AttributeError: module 'plotly.graph_objs' has no attribute 'Area' #58890

Merged
merged 3 commits into from
Sep 30, 2024

Conversation

florianneukirchen
Copy link
Contributor

@florianneukirchen florianneukirchen commented Sep 27, 2024

The PolarPlot crashes with:

AttributeError: module 'plotly.graph_objs' has no attribute 'Area'

The old polar plots go.Area() have been replaced by go.Barplot() in Plotly 4.0 and removed in Plotly 5.0.

The pull request fixes the bug by using go.Barplot instead. It also forces the type of the value field to be numeric.

@github-actions github-actions bot added this to the 3.40.0 milestone Sep 27, 2024
Copy link

github-actions bot commented Sep 28, 2024

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit 08817e0)

@rouault
Copy link
Contributor

rouault commented Sep 29, 2024

@florianneukirchen There are code formatting issues. See end of log at https://github.com/qgis/QGIS/actions/runs/11071897914/job/30801301943?pr=58890 for advice how to fix that

@florianneukirchen
Copy link
Contributor Author

Thanks for the comment, I fixed the indentation in the last commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants