score:2

Accepted answer

My answer is not perfect because I am not an R programmer - maybe it can be done better. I don't know how to define data to include isSum property in R, but I know how to do it in JavaScript.

I used JS() function in R that allows us to inject JavaScript code and I updated the last point this way:

library(highcharter)

df=data.frame(y=c(232,345,544,100),name=c("one","two","three","four"))    

highchart()%>%
  hc_chart(type="waterfall", events = list(load = JS("function () {
          this.series[0].points[3].update({
            isSum: true
          });
  }")))%>%
  hc_add_series(df)

edit I got it. You can define it in your data like this:

df=data.frame(y=c(232,345,544,100),name=c("one","two","three","four"),isSum=c(FALSE, FALSE, FALSE, TRUE))  

Related Query

More Query from same tag