rstudio / dygraphs

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

Capability to use dyCSS styling on a per dyGraph basis #186

Open DandeVilliers opened 6 years ago

DandeVilliers commented 6 years ago

Within the dyCSS class the following is stated: "Note that CSS styles are global so will affect all dygraphs on a given web page."

Does the functionality exist for setting CSS settings on a per-graph basis if you have multiple plots on a shiny webpage?

Example: (This affects all plots on a global scale but should only apply to one plot) ... dyCSS(my_plot, textConnection(" .dygraph-legend > span { display: none; } .dygraph-legend > span.highlight { display: inline; } "))

przmv commented 6 years ago

Thanks for reporting this, @DandeVilliers! I'll have a look.

DandeVilliers commented 6 years ago

Any progress on this issue, @pshevtsov? Thanks.

przmv commented 6 years ago

Oh, sorry, caught flu or something. I'll try to have a look on weekend.