-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Shape labels missing/not showing #4475
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
Comments
@johentsch what environment are you running the example in? ![]() |
You question solves the problem: I was running the code in PyCharm Pro 2023.3.2 (233.13135.95) and Plotly.js is pointing to v2.12.0. When I run it in Jupyter Lab, I'm getting the correct result like you. |
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 |
I have used Plotly 5.18.0 to create this Gantt chart to which I have added two rectangle shapes:
Both rectangles come with labels that are not being displayed, no matter how hard I try.
fig["layout"]["shapes"]
looks like this:I've spent a lot of time playing around with the options from the manual but Plotly is not treating me to displaying any desired label. Am I doing something wrong or is it a bug?
On a side note, since it might point to the solution of the problem, the small black rectangle is set to
showlegend=True
but it does not appear in the legend.Code to reproduce
The text was updated successfully, but these errors were encountered: