rstudio / dygraphs

R interface to dygraphs
http://rstudio.github.io/dygraphs
Other
364 stars 194 forks source link

Bring dyLimit to front of dygraph #231

Open Eli-Berkow opened 4 years ago

Eli-Berkow commented 4 years ago

I saw this Stack Overflow question and thought that it might make sense for the dyLimit to be brought to the front and not hidden behind the other elements of the dygraph. Perhaps this is quite rare and unnecessary but I think a parameter option at least could help. I have seen some workarounds online but they are rather complicated.

Simple example:

dygraph(mdeaths) %>% 
    dyOptions(fillGraph = TRUE, fillAlpha = 1) %>% 
    dyLimit(1000, strokePattern = "solid", color = "red")

image

niiattey commented 11 months ago

Have you been able to find a work around it?

Eli-Berkow commented 11 months ago

@niiattey unfortunately not although I haven't used it often enough to look for one.