I am trying to style a highcharter, in R, with grouped labels on the x-axis.
How do I color the border of the boxes around the labels?
Code:
mpgg <- mpg %>%
filter(!manufacturer %in% c("volkswagen", "chevrolet")) %>%
filter(class %in% c("compact", "midsize", "subcompact")) %>%
group_by(class, manufacturer) %>%
summarize(count = n()) %>%
ungroup()
categories_grouped <- x %>%
select(class, manufacturer) %>%
group_by(name = class) %>%
summarise(categories = list(manufacturer)) %>%
list_parse()
hchart(
mpgg,
"column",
name = "Cars",
hcaes(y = count)
) %>%
hc_xAxis(categories = categories_grouped,
labels = list(style = list(fontSize = "10px"))
) %>%
hc_add_dependency("plugins/grouped-categories.js")

