Skip to content
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

Quick questions about width and height #88

Open
verasiwei opened this issue Jun 22, 2021 · 1 comment
Open

Quick questions about width and height #88

verasiwei opened this issue Jun 22, 2021 · 1 comment

Comments

@verasiwei
Copy link

Good afternoon!

I am new to r2d3. I found sometimes it is difficult to view directly through rmarkdown d3 chunk or through r2d3 function. Are there any quick ways that I don't need to worry about height and weight, and make the interactive plot in the appropriate position in html? Thanks!

Best,
Siwei

@jlfsjunior
Copy link

I haven't used r2d3 in a while, but as far as I remember the chart container is resized automatically (see Sizing on this vignette).

Your problem might be related to the d3 Rmd chunk (I am not familiar with it) or you might be hard-coding the sizes in js instead of using width and height provided by r2d3.

It'd be helpful if you could provide a short reprex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants