leafpop icon indicating copy to clipboard operation
leafpop copied to clipboard

Export of `dygraph` as popup fails

Open bart1 opened this issue 7 months ago • 0 comments

Here is a small minimal example of adding a dygraph to a popup. This works well! I produce a leaflet maps with 180 graphs each of 1500 records this way.

require(leafpop)
require(leaflet)
require(dygraphs)

dy<-dygraph(data.frame(Sys.time()+1:100, sin((1:100)/10)))
leaflet() |>addTiles()|>addMarkers(5,45, popup = popupGraph(dy,"html", 400,400))

This all works well in R studio and I can open it in the browser however as soon as I try to save it it fails. The dygraph are not found if I open the exported html files. It seems something goes wrong either saving the graphs or creating the right path

bart1 avatar Jul 13 '24 13:07 bart1