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

Charts run off the edge of PDF pages #169

Open
tcash21 opened this issue Apr 4, 2022 · 1 comment
Open

Charts run off the edge of PDF pages #169

tcash21 opened this issue Apr 4, 2022 · 1 comment
Assignees
Labels
type: bug Existing features not working as expected
Milestone

Comments

@tcash21
Copy link

tcash21 commented Apr 4, 2022

I'm using the below command in a shiny app to generate a PDF report using the output from create_report. I've tried several datasets and for some reason the charts sometimes leak off the edge of the PDF pages (see screenshot). Thank you for any help.

the_report_file <- tempfile(tmpdir = ".", pattern = "report", fileext =".pdf")
create_report(for_profile, output_file = the_report_file, y = input$col_dependent, output_format = pdf_document(), config = configure_report(add_plot_str = FALSE))

image

@boxuancui boxuancui self-assigned this Apr 4, 2022
@boxuancui boxuancui added the type: bug Existing features not working as expected label Apr 4, 2022
@boxuancui
Copy link
Owner

Hi @tcash21 thanks for the information, and I can re-produce this with any dataset. While I do not have an immediate solution, please generate a html report and manually save it as pdf, if that is an option. I tested that route, and the pdf report looks OK.

Thanks again for raising this issue!

@boxuancui boxuancui added this to the v0.9.0 milestone Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Existing features not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants