Looking for a way to remove a label from the legend but keep the line on the chart.
for example the appending of ‘visible = FALSE’ removes the line from the chart as well as from the legend.
highchart() %>%
hc_add_series(df, "line",hcaes(date, value)) %>%
hc_xAxis(
title = list(text = "Year"),
type = "date",
tickInterval = 2) %>%
hc_add_series(
name = "Monthly Moving Average",
moving_avg_df,
"line",
hcaes(date, value)) %>%
hc_yAxis(
title = list(text = "Totals")
) %>%
hc_legend(align = 'left')
Alternatively, is there a way to label a series coming from hc_xAxis? It shows up on the legend as simply ‘Series 1’, whereas the ‘name’ attribute can be applied to hc_add_series, but not hc_xAxis.