Skip to content

Commit

Permalink
ensure white (rather than transparent) background in shiny app
Browse files Browse the repository at this point in the history
  • Loading branch information
giocomai committed Mar 8, 2022
1 parent e74494a commit d329dad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions inst/shiny/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ server <- function(input, output, session) {
width = input$download_width,
height = input$download_height,
units = "cm",
type = "cairo")
type = "cairo",
bg = "white")
}
)

Expand All @@ -150,6 +151,7 @@ server <- function(input, output, session) {
width = input$download_width,
height = input$download_height,
device = cairo_pdf,
bg = "white",
units = "cm")
}
)
Expand All @@ -161,7 +163,8 @@ server <- function(input, output, session) {
plot = gantt_chart(),
width = input$download_width,
height = input$download_height,
units = "cm")
units = "cm",
bg = "white")
}
)

Expand Down

0 comments on commit d329dad

Please sign in to comment.