Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Can I control which view prints?

I have created a graph with different mobile-friendly views for different-sized browser windows (e.g., 0-720 pixels, > 721 pixels). These views have different formatting (for instance, the > 721 pixel view has a title, while the 0-720 pixel view doesn’t). Is there any way to control which view prints when a user selects print from the plotly modebar? I’d like the print version to show the title even if the view in the browser window does not due to space constraints.

You can try adding a new custom to-image modebar button: