score:4

Accepted answer

just add the argument showinlegend = f:

highchart(type = "stock") %>% 
  hc_add_series(usdjpy, id = "usdjpy") %>% 
  hc_add_series_flags(dates,
                      title = c("e1", "e2"), 
                      text = c("this is event 1", "this is the event 2"),
                      id = "usdjpy", showinlegend = f) %>% 
  hc_legend(enabled = t)

for more information: https://api.highcharts.com/highcharts/series.line.showinlegend


Related Query

More Query from same tag