如何从 R Highcharter 中删除 "Values"

How to remove "Values" from R Highcharter

highchart() %>% 
  hc_yAxis_multiples(
    list(lineWidth = 3),
    list(showLastLabel = FALSE, opposite = TRUE),
    list(title = list(text = "<b>Sepal Length<b>",margin = 20),opposite = FALSE),
    list(title = list(text = "<b>Petal Length<b>", margin = 20), opposite = TRUE)
  ) %>% 
  hc_xAxis(categories = iris$Species) %>%
  hc_add_series(name = "Sepal Length", data = iris$Sepal.Length,type="column", yAxis=0, color ="#ff9400") %>% 
  hc_add_series(name = "Petal Length", data = iris$Petal.Length, type="column", yAxis=1, color ="#7fadf0")

我正在使用 hc_yAxis_multiples 添加额外的 Y 轴。我想删除 Y 轴两侧的文本标签 "Values"。

关于这个问题,我发现了一个类似的 post:,但它在 Java 中,并且该示例只有一个 Y 轴。

试试这个:

highchart() %>% 
  hc_yAxis_multiples(
    list(title=list(text="<b>Sepal Length<b>",margin = 20),
         lineWidth = 3,showLastLabel = FALSE,opposite = FALSE),
    list(
      title=list(text="<b>Petal Length<b>", margin = 20),
      lineWidth = 3,showLastLabel = FALSE,  opposite = T)
  ) %>% 
  hc_xAxis(categories = iris$Species) %>%
  hc_add_series(name = "Sepal Length", data = iris$Sepal.Length,type="column", yAxis=0, color ="#ff9400") %>% 
  hc_add_series(name = "Petal Length", data = iris$Petal.Length, type="column", yAxis=1, color ="#7fadf0")