score:0

Accepted answer

How about summing it in Javascript and then using the result when creating the title?

var sum = 0;
for(var i in series)
    sum += i;

Then, just set the title:

chart = new Highcharts.Chart({
    ...

    title: {
        text: 'SUM: ' + sum
    },

    ...
)};

That should work, right?

score:2

Because you pass an object literal to Highcharts, you best bet might be to do something like this:

http://jsfiddle.net/WRa43/

var data = [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4];

$('#container').highcharts({
    series: [{
        data: data
    }],

    title: {
        text: "Total is " + data.reduce(function(i,a) { return i+a; })
    }
});

Reference for array.reduce


Related Query

More Query from same tag