Skip to content

Export of dygraph as popup fails #32

@bart1

Description

@bart1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions