I have a line graph and a background image inserted at the last time stamp / last value of the line graph.
When I pan or zoom, the line trace remains at the same x/y coordinates,
but not the inserted image. Is there an incantation to tell plotly that the image should remain at the same coordinates on pan / zoom?
Here is a reprex:
# The image is hosted at : # https://imgur.com/gallery/6PZwOeG # Please download and use in the following incantation: mysource = base64enc::dataURI(file = "~/Downloads/Flashing Circle - Imgur.gif") plot_ly() %>% add_trace(x=as.Date((Sys.Date()-99):(Sys.Date())), y =1:100,type="scatter",mode="lines",color="#ff7f#0e") %>% layout(images = list( list( source = mysource, x=as.Date(Sys.Date()),y = 100, xref = "x", yref = "y", sizex=1000000000, sizey=1000000000, xanchor="center", yanchor = "middle", layer="below" )))