-1

我正在尝试重新创建此。我对右下角的标签“东京”和“伦敦”感兴趣。显然,我需要获取 html 中所示的 series-label.js:<script src="https://code.highcharts.com/modules/series-label.js"></script> 如果从 html 中删除该行,标签就消失了。如何使用 r-wrapper 实现这一目标?我不在乎太阳、雪和颜色。就在右边的标签上。示例代码:

data(citytemp)

hc <- highchart() %>% 
  hc_xAxis(categories = citytemp$month) %>% 
  hc_add_series(name = "Tokyo", data = citytemp$tokyo) %>% 
  hc_add_series(name = "London", data = citytemp$london)

hc
4

1 回答 1

0

检查此代码:

library(highcharter)
data(citytemp)
hc <- highchart() %>% 
  hc_xAxis(categories = citytemp$month) %>% 
  hc_add_series(name = "Tokyo", data = citytemp$tokyo) %>% 
  hc_add_series(name = "London", data = citytemp$london) %>% 
  hc_legend(align = "right", verticalAlign = "bottom",
            layout = "horizental",  y = -5) 

hc
于 2018-05-07T13:00:25.660 回答