[英]Change color of the values in heatmap or remove the values in highcharter R package
[英]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 轴两侧的文本标签“值”。
我发现了一个关于这个问题的类似帖子: How to remove "Values" and "series" from highcharts? ,但它是在 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")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.