-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Widget based plots don't look good on a smartphone #1484
Comments
Can this be reproduced with pure HoloViews code? |
Yeah, sure: import pandas as pd
import holoviews as hv
hv.extension('bokeh')
df = pd.read_csv('https://datasets.holoviz.org/penguins/v1/penguins.csv')
grouped_scatter = hv.Scatter(df, ('bill_length_mm'), vdims=['bill_depth_mm', 'island', 'sex']).groupby(['island', 'sex'])
grouped_scatter.opts(height=300, responsive=True) |
Then that's more likely to be a HoloViews issue. I wonder if part of it is not a Bokeh issue too, the widgets overlapping the plot should not happen I think. |
I don't think there is a lot we can do in HoloViews. Changes are likely needed in Panel or Bokeh. |
In Panel, you mean to the HoloViews pane? I haven't checked who's responsible for passing down |
Random thought, I wonder if https://github.com/panel-extensions/panel-material-ui addresses this |
ALL software version info
Software Version Info
Description of expected and observed behavior
Expected Behavior
When I set
responsive=True
on a widget-based plot, I expect both the plot and its widgets to dynamically scale for smaller screens (e.g., smartphone displays).Observed Behavior
While the plot resizes correctly, the widgets remain at their original size, causing them to overlap and obscure the plot.
Complete, minimal, self-contained example code that reproduces the issue
Stack traceback and/or browser JavaScript console output
None
Screenshots or screencasts of the bug in action
iPhone 14 Pro-max
Samsung galaxy S20 Ultra
Google Pixel 7
The text was updated successfully, but these errors were encountered: