highcharter
highcharter copied to clipboard
webshot printing blank screenshot with latest modifications in highcharter
The common step to export highcharter plot is hc exporting, however I using a external button in shiny and I' call "webshot" (library webshot) to take a screenshot of plot, in january this worked perfectly, but last changes do not allow extraction of html content to make the capture
Eg:
filename <- "test_01"
filename <- sub("([^.]+)\\.[[:alnum:]]+$", "\\1", filename)
tmp <- paste(tempdir(), 'html', sep ='.')
x <- c(rnorm(10000), rnorm(1000, 4, 0.5))
viz <-hchart(x, name = "data")
htmltools::save_html(viz, tmp)
tmpSave <- filename
format <- "png"
webshot::webshot(tmp, paste0(filename, ".", format), delay = 0.7)
Thanks for readme
Have you tried increasing the delay
parameter in webshot::webshot()
? Sometimes, the images produced by webshot
are blank because the startup animation is not finished when the snapshot is taken.
Hi!, yes I tried, but the output its the same :(
Has there been any fix to this issue ?