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.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.