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

Gantt chart legend does not toggle #1371

Closed
astrojuanlu opened this issue Dec 17, 2018 · 3 comments
Closed

Gantt chart legend does not toggle #1371

astrojuanlu opened this issue Dec 17, 2018 · 3 comments

Comments

@astrojuanlu
Copy link
Contributor

The Gantt examples from the documentation can't toggle the resources:

https://plot.ly/python/gantt/#using-hours-and-minutes-in-times

This was already reported in #910 (comment), but I'm opening a separate issue to not clutter the original one.

Gantt

@jonmmease
Copy link
Contributor

Thanks for opening the dedicated issue @Juanlu001.

This would be nice, and I think it would be possible with some restructuring of the figure factory. Right now the rectangles are drawn as layout.shape objects, which aren't actually connected to a legend entry. To get toggling to work, the rectangles could be drawn as scatter traces with a fill=toself.

@johentsch
Copy link

johentsch commented Dec 21, 2018

I am experiencing the same problem: Drawing an offline Gantt chart, plotly shows the colorbar only if index_colis set to numerical values. Once index_col ist set to labels, show_colorbar=True is being ignored, no legend is shown.

Edit: Actually, it was being shown but at a position far off, I had to scroll down until the end to see it (the plot was not moving while scrolling). Now, the problem is gone because I defined a color dictionary, applying a specific color to each Resource.

@gvwilson
Copy link
Contributor

Hi - we are currently trying to tidy up Plotly's public repositories to help us focus our efforts on things that will help users most. Since this issue has been sitting for several years, I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our backlog. Thanks for your help - @gvwilson

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

No branches or pull requests

4 participants