score:1

try to use colorbypointer parameter

score:1

this will change the color of each column in your series. obviously, you can choose whichever color you want.

values <- c(25,50,75,100)
vcolor <- c("orange", "green", "blue", "red")

a <- rcharts:::highcharts$new()
a$chart(type = "column")
a$series(data = list(
  list(y = values[1], color = vcolor[1]),
  list(y = values[2], color = vcolor[2]),
  list(y = values[3], color = vcolor[3]),
  list(y = values[4], color = vcolor[4])
), name = 'data')
a

carlos


Related Query

More Query from same tag