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 Query

More Query from same tag