使用rhighcharts绘制y轴上的百分比?

时间:2017-05-25 12:56:11

标签: r highcharts

是否可以告诉rhighcharts y轴应该是百分比?例如:

library("highcharter")

highchart() %>% 
  hc_chart(type = "column") %>% 
  hc_title(text = "Some title") %>% 
  hc_xAxis(categories = c("A", "Same", "B")) %>% 
  hc_add_series(data = c(0.05,  0.26,  0.69),
                name = NULL)

应为5%,26%和69%

1 个答案:

答案 0 :(得分:0)

hc_yAxis(labels = list(format = "{value}%")) %>%