score:2
Accepted answer
This should work for the Stacked bars:
var dataItem = chart.series[X].data[Y],
dataValue = dataItem.percentage/100*dataItem.total;
for the line-graph, you should be able to do:
dataValue = dataItem.y;
See here:
http://jsfiddle.net/AyUbx/720/
$("#sum").text(series.data.reduce(function(a,b){
return a + b.y;
},0));
Source: stackoverflow.com
Related Query
- How do I calculate the sum of the points in a HighChart after I edit it
- How to add new points to highcharts after plotting the first 'n' points?
- highcharts donut pie - How to calculate pie size percentages after resize the chart
- How to update/add Highchart options/properties after the chart/object has been created?
- How to edit the html of a highchart label?
- How could I edit the color of the data elements in highchart graphic?
- How to set json data from url on highchart and polling the json data after 1 sec to dislay on highchart using Angular js
- how to set the interval of points on Y - Axis highcharts
- How to change the font family of Highchart to Bootstrap css default font family
- How to export a Highchart chart to PDF thanks to a button outside the chart?
- How to know information about the clicked bar in highchart column r shiny plot
- How can I do in Highchart to have 1px space between the columns and the y Axis?
- How can I delete all of the points from a highcharts series
- How to set the z-index of points on a HighCharts scatter plot?
- How can I extend the lines of this Highchart series to the edges of my chart area?
- How to resolve overlapping scatter points in a highchart
- Is there a way how to dynamically create a plotline in highchart when the value is lower than previous one?
- How to set series-label to false by default and change the color of series label text in highchart
- Highchart how to animate from the xaxis bottom line upward
- How to set interval points on the x-axis in HighCharts?
- How to grab correct highchart number in selectors using Selenium Webdriver with Python with several charts on the page?
- Is there limit on the number of data points to plot HighChart
- how to display 2 same highcharts without duplicate the code
- Highchart how to enlarge the plotBands in a gauge?
- How to disable or remove the default HighChart loading message?
- How to edit tooltip in Highcharts C# code
- How to do In highchart tooltip display the first 100 characters and then say "See more .."?
- How to calculate the trend line
- How to make two charts using highchart show up in the same line side by side using div
- How to edit the tooltip text in a highcharts boxplot
More Query from same tag
- Change background color of highcharts on hover
- Highcharts CDN issue with IE8
- Highcharts: Align multiple charts in same container
- Jinja2: TemplateSyntaxError: Encountered unknown tag
- Data exposure for HighCharts
- customEvents.js and H.removeEvents conflict
- Remove data labels when ploting and exporting graphs
- Very wide columns in stacking column graph
- How to set Highchart datetime format to minute?
- How to change the color of highcharts series graph to black & white during downloading it as an image?
- How can I generate a real-time highchart from my database data?
- Race condition leading to Highcharts error #13
- Highcharts column w/ overlapping goal
- Unable to use solid-gauge highchart in backboneJS from ruby on rails
- Highcharts Image click event
- Is a 1D flag chart possible?
- softMin/softMax for xAxis in HighStock doesnt set?
- Setting color on label gridline Highcharts
- highcharts fixed point width is not working when a series is hidden
- Is it possible to load Highcharts options from a file?
- create a chart with date values in highchart
- converting html to haml
- Implementing HighCharts
- ionic 2 Uncaught (in promise): Error: Highcharts error #17: www.highcharts.com/errors/17
- How to set border for a highcharts pie?
- Issue With Highcharts x-axis label
- Stacked highchart in php
- the picture from highcharts in the PDF made by html2canvas is blurry?
- Set a maximum for data grouping in Highstock charts to prevent from grouping
- Highcharts. Pie chart. DataLabels formatter