Hello folks
I just updated my streamlit from 1.9.2 to 1.35.0 and noticed the fullscreen button disappeared in the newer version (see image). Couldnt find how to bring it back. Any thoughts?
cheers,
Ed
Hello folks
I just updated my streamlit from 1.9.2 to 1.35.0 and noticed the fullscreen button disappeared in the newer version (see image). Couldnt find how to bring it back. Any thoughts?
cheers,
Ed
It is there for me.
oh boy… what version are you using?
On streamlit version 1.27.2, I’m seeing the full-screen button on plotly charts, but it only shows up on hover:
Tried 1.32.2, 1.35.0 and 1.36.0. All of them worked as expected.
@Giselle pasted your code in my environment, the chart shows alright but no sign of the Full Screen Button. I can’t afford changing versions as I could compromise other stuff in my code. So I came up with this workaround, on which I enable the displayModeBar back again and choose which buttons I want to hide (I removed all but the fullscreen):
plotly_modebar_config = {'displaylogo': False,
'modeBarButtonsToRemove': ['zoom', 'pan', 'zoomIn', 'zoomOut', 'lasso', 'autoScale','select2d',
'resetScale','resetViewMapbox','toImage']
}
st.plotly_chart(fig, use_container_width=True, config=plotly_modebar_config)
more info on this: Configuration in Python
It’s not exactly the solution I wanted but it would do for now. Thanks @Giselle and @Goyo for your time and help
FWIW, the image in the OP looks like an altair chart and that is what I tested. The fullscreen button in plotly charts is different but it works in streamlit 1.35.0 too.
Yes I use altair, but it worked on the previous version, so still a mistery why it’s not showing on the current version. Thanks
It seems to work with every altair plot out there, so it must be something specific to your code or your setup.
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.