Get user screen size?

Is there any way to get the screen size for the device that the Dash plot is being displayed on?

You should be able to use different styles with media queries for different screen sizes in your stylesheet, and then set the viewport width to the device width in meta tags, as outlined here.

You could also run some custom JavaScript code that you have in your assets/ folder that determines the screen size.

Hope that helps :slight_smile:

1 Like