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));

Related Articles