Skip to content

cssClass has no impact on dyAnnotation #258

Description

@sanjmeh

dygraphs for R is an excellent time series visualisation wrapper around Javascript Dygraphs.
here's the issue:
I am not seeing any effect of cssClass argument in dyAnnotation() function.
I have tried the following:

dygrh %>% dyAnnotation(series = "SERIES 1",x = xpos,text = txt,width = 35,cssClass = "font-size:50px;")

I have also tried a separate css file to call all the styling using the dyCSS() function,

dygrh %>% 
dyAnnotation(series = "SERIES 1",x = xpos,text = txt,width = 35,cssClass = "dyAnnot")  %>%
dyCSS("mystyles.css")

Here's the css file I use.

.dygraph-axis-label-y2{
  color: red;
}

.dygraph-title{
  font-size:30px;
}

.dyAnnot{
  font-size:30px;
}

So while the first two classes are picked up, the user defined class created by me (.dyAnnot) is not getting picked up.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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