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))
Source: stackoverflow.com
Related Query
- How to add the "isSum" bar in Highchart Waterfall chart in R?
- How to fix the width of bar in waterfall chart as well as its x-axis width of one group.?
- How to open new chart to the adjacent <div> on bar click in highchart
- How to export a Highchart chart to PDF thanks to a button outside the chart?
- How to add a plotline to a bar chart in Highcharts?
- How do you add text to the bottom center of legend and bottom center of chart under legend?
- How to know information about the clicked bar in highchart column r shiny plot
- Highcharts Bar Chart - How to set the minimum bar width/length
- How can I extend the lines of this Highchart series to the edges of my chart area?
- How can I prevent my HighChart bar chart from being inverted?
- How to use add series and update methods in the high chart wrapper for angular?
- How to add Highchart Bar lines and lables?
- How to add Legend in highchart compare stock chart
- How to add a horizontal line in Column bar chart in Highcharts plugin?
- How can I add a Bar Chart to my Django based Database?
- How to create chart with highchart in which bar doesn't start from 0 in y axis?
- How to add two dataLabels to a bar chart using HightCharts
- How to add one more value against at the end of each bar with a legend
- how to add an color picker control to highchart for changing the color of series by user
- How to add value of y-axis under the x-axis labels in highchart with given dataset
- Highcharts: How to add a text panel on the side of the chart area
- how to add values from a database output to the data field in Line Chart of Chart.js
- Android Highchart bar chart add a text below a bar
- How to add a vertical plot line in multiple line series and show the tooltip on Plot line in highchart
- How can i load external json data in highcharts to show the bar chart
- Highchart - How do I create the attached image gauge within a semicircle pie chart
- How to calculate the height of bar chart
- Highcharts - Column Chart Drilldown, how to change the drilldown bar color based on some value
- How to add white space in the line chart plot points?
- How to add negative area or background for a specific bar or pie chart in highcharts?
More Query from same tag
- How do I align the hover/dropdown menu with the my custom context button symbol?
- HighChart: Add xaxis dynamically doesn't consider what type I give it
- How to draw a background behind a plotLine label in a highstock chart
- Chart not fill all the page in A4 format when printing. (highcharts)
- Updating single category data in Highcharts column chart
- Highcharts - Gantt Chart plot issue
- Fix Highcharts dataLabels to the bottom
- React Highcharts include plugins
- Highcharts - Using a function to change the tooltip
- Highcharts update breaks previous layout
- JavaScript code inside TypeScript file .ts not working
- Zoom In & Zoom Out buttons - highcharts
- Binding "Highcharts" events in rails
- Time not showing correctly in HighChart
- Nanosecond plots using highstockJS
- $(document).ready() equivalent for rails 3? Need highcharts to load correctly
- high charts - lost animation when pie chart sliced is programmatically set
- Highcharts combination chart from JSON data
- Rendering Highcharts graph
- How can I show a highstock graph with a linear timeline
- How can I show vertical line in highchart as shown in below image?
- Highcharts x-axis tick starts with an offset
- Add spacing between points in HighChart
- React highcharts, show legends as bar
- Freeze Highchart Animation
- Highcharts polar spider with Min and Max for each y-axis
- How to reverse a bar chart in highcharts?
- BUG? RangeSelector Buttons not working correctly
- Not able to draw a Pie Chart with external csv file in HighCharts
- How to remove ONLY zoom buttons in Highcharts?