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 Articles