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

Export of dygraph as popup fails #32

Open
bart1 opened this issue Jul 13, 2024 · 0 comments
Open

Export of dygraph as popup fails #32

bart1 opened this issue Jul 13, 2024 · 0 comments

Comments

@bart1
Copy link

bart1 commented Jul 13, 2024

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 bart1 changed the title Export of dygraph fails Export of dygraph as popup fails Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant