我正在尝试更改 Highcharts 中折线图的 dashStyle。
我参考了RDocumentation,第 7 页,在任何地方都没有它的例子。它所说的只是使用dash_styles()
然后我在这里检查并尝试过,但它没有得到我需要的结果。
library(highcharter)
highchart() %>%
hc_title(text = title) %>%
hc_xAxis(categories = batchno) %>%
hc_add_series(name = "Mixer A", data = A,
color = "hotpink", pointWidth = 20, type = "line",
dash_styles(style = "LongDot")) %>%
hc_add_series(name = "Mixer B" , data = B,
color = "slateblue", pointWidth = 20,type = "line") %>%
hc_chart(type = "column") %>%
hc_yAxis(
list(lineWidth = 3, lineColor='seashell', title=list(text= "text"),max= 10)) %>% hc_tooltip(crosshairs = TRUE, shared = TRUE)
}
我如何使用这个 dash_style ?