Width of Visualization in form card #1970
Answered
by
mturoci
n-srinidhi
asked this question in
Q&A
-
Hi, I'm using ui.visualization() to plot graphs in a form card. When I don't specify a width, the visualization is barely visible as shown below When I set the width, its visible as required. Since the default width is 100%, shouldn't it be visible? |
Beta Was this translation helpful? Give feedback.
Answered by
mturoci
May 31, 2023
Replies: 1 comment 8 replies
-
Hey, can you add a min repro code? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, correct. The
ui.visualization
plot tries to render so that it fills the entire parent container if it doesn't have dimensions specified. Since you initially start withvisible=False
, the container has no dimensions (0), so plot is not rendered (or very small). I advise rendering plots visible and when needed rather than initially unvisible.