当鼠标悬停在可以向下钻取的部分上时,有没有办法在 highcharter 中更改树形图的活动部分的颜色?我似乎找不到合适的命令。
hctreemap2(data = M,
group_vars = c("Order", "Family","Species"),
size_var = "n",
color_var = "n",
layoutAlgorithm = "squarified",
levelIsConstant = FALSE,
levels = list(
list(level = 1, dataLabels = list(enabled = F)),
list(level = 2, dataLabels = list(enabled = F)),
list(level = 3, dataLabels = list(enabled = T))
)) %>%
hc_colorAxis(minColor = brewer.pal(9, "Blues")[4],
maxColor = brewer.pal(9, "Reds")[6]) %>%
hc_tooltip(pointFormat = "<b>{point.name}</b>:<br>
Number Measured: {point.value:,.0f}")
先感谢您。