-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
responsive Gantt-chart #1724
responsive Gantt-chart #1724
Conversation
Gantt chart now uses scatter plots: - updating all the functions accordingly - unit tests updated - new param: show_hover_fill for hiding the text for the filled area
* only set plotlyServerURL using the plotly_domain in the .config file if one isn't specified in the config dict passed to iplot/plot * make it clear that the default in clean_config.get is None
* scraper function for sphinx-gallery, in plotly.io. scraper function + skeleton of sphinx doc with minimal gallery (two examples) * added psutil dep to tox.ini * python 2 compatibility * added orca dep to package.json for tests * removed typo * corrected bug * python 2 compatibility * added electron * try to configure orca * Moved test file so that it's tested by the orca build only. * use custom renderer for sphinx-gallery * removed sphinx files which are now in plotly-sphinx-gallery + changed name of renderer sphinx -> sphinx-gallery, and changed wording of documentation * Modified test with new renderer name * try to fix py2 compatibility * write_html instead of offline.plot * change import order
Gantt chart now uses scatter plots: - updating all the functions accordingly - unit tests updated - new param: show_hover_fill for hiding the text for the filled area
# Conflicts: # packages/python/plotly/plotly/tests/test_optional/test_figure_factory/test_figure_factory.py # packages/python/plotly/tox.ini
# Conflicts: # packages/python/plotly/plotly/figure_factory/_gantt.py # packages/python/plotly/plotly/tests/test_optional/test_figure_factory/test_figure_factory.py # packages/python/plotly/plotly/tests/test_optional/test_tools/test_figure_factory.py
legendgroups for markers marker opacity is 0
…None the created figure is now responsive
Hi @csabaszan, thanks for the PR. I'm happy for the gantt to be responsive horizontally by default. But I think we should keep the default height of 600 so that, in the notebook, gantt charts aren't displayed shorter than they are now. Does that work for you? If responsive height is also desired for HTML export, then the |
Hi @jonmmease, yeah only responsive width by default makes more sense to me as well. |
Thanks @csabaszan! |
Hi,
#1211 mentioned that the created figure is not responsive, so I removed the default values for width and height of the figure.
Csaba