leafpop
leafpop copied to clipboard
Export of `dygraph` as popup fails
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