【发布时间】:2018-06-07 15:15:47
【问题描述】:
我想为每个条添加一个特定的行,如下所示:
但是,我不能。为此,我尝试了以下代码来至少放置一个特定的文本,但它不再起作用了:
mydata <- data.frame(A=runif(1:10),
B=runif(1:10),
C=runif(1:10))
highchart() %>%
hc_chart(type = "column", inverted = TRUE) %>%
hc_title(text = "MyGraph") %>%
hc_yAxis(title = list(text = "Weights")) %>%
hc_plotOptions(column = list(
dataLabels = list(enabled = FALSE),
stacking = "normal",
enableMouseTracking = FALSE)
) %>%
hc_legend(layout="vertical") %>%
hc_tooltip(formatter = function(){ return("<b> test</b><br/>")},
useHtml = TRUE) %>%
hc_series(list(name="A",data=mydata$A),
list(name="B",data=mydata$B),
list(name="C",data=mydata$C))
我的问题是如何在条形图中为每个条形线添加红线?
【问题讨论】:
标签: r plot r-highcharter