Skip to content
Discussion options

You must be logged in to vote

The max width of the widget is set in the widget's css file. It's set to have width: 100% and max-width: initial, which means it will take up 100% of its container's width without any specific maximum width constraint.

That said, I saw the same behavior you did -- the max width was less than the full screen size. A workaround is to add a very large width to your spec-- in the example below, 1500. Since Mosaic is built to be responsive, as you make the screen size smaller, the widget sizes down, effectively yielding you full screen width.

}
spec = {
"data": data,
"plot": [plt_spend_by_type],
"width": "1500",
}

Screen recording:
https://github.com/user-attachments/assets/8873a1d3-2101-47dd-…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jgunstone
Comment options

Answer selected by jgunstone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants