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

responsive Gantt-chart #1724

Merged
merged 24 commits into from
Aug 31, 2019
Merged

responsive Gantt-chart #1724

merged 24 commits into from
Aug 31, 2019

Conversation

cs48a
Copy link
Contributor

@cs48a cs48a commented Aug 15, 2019

Hi,

#1211 mentioned that the created figure is not responsive, so I removed the default values for width and height of the figure.

Csaba

cs48a and others added 23 commits July 15, 2019 00:29
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
@jonmmease
Copy link
Contributor

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 height=None argument could still be set.

@cs48a
Copy link
Contributor Author

cs48a commented Aug 17, 2019

Hi @jonmmease, yeah only responsive width by default makes more sense to me as well.

@jonmmease
Copy link
Contributor

Thanks @csabaszan!

@jonmmease jonmmease merged commit 15b2519 into plotly:master Aug 31, 2019
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

Successfully merging this pull request may close these issues.

None yet

4 participants