Highcharter - different colors per group

时间:2019-03-19 15:06:33

标签: r shiny r-highcharter

I use this code dynamically in an R-Shiny app, so the option ColorByPoint and setting a color for each bar does NOT work

highchart() %>%
    hc_add_series(data = mtcars, type = "bar", hcaes(y = mpg, color = cyl)) %>%
    hc_colors(c("red", "green", "blue"))

I build barcharts and need to give each bar a group specific color. Switching from color = cyl to group = cyl changes the color, but it looks different to what i need. Can anyone help me with this problem?

0 个答案:

没有答案