-
Notifications
You must be signed in to change notification settings - Fork 13
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
Cannot center circlepackeR-generated plot in Shiny app #7
Comments
Using an in-browser debugger, I've determined that the svg But to center the svg on my 1680px page, I actually need: Forcing this offset in the debugger works. I'm wondering if there is a way to pass an offset through from the R call? |
Ultimately, this looks like a problem with how |
Hi! As you noted, it seems the crux of the problem is that the x and y dimensions are translated with the same value, which is probably not appropriate for screens which are not squares:
Would the following work for you?
Unfortunately, I don't have the cycles to actively maintain the package anymore, but I'd be more than happy to take PR's :) |
Yes, I think that would help! ;) |
We need to center (horizontally) a
circlepackeR
plot on a web page in a Shiny app. None of the "usual" Shiny tricks for centering --- columns influidrow
, etc --- seem to work. Even forcing atext-align:center
in the parent<div>
of the<svg>
does not seem to work.Please advise!
The text was updated successfully, but these errors were encountered: