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:
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
Source: stackoverflow.com
Related Articles
- HighCharts: Possible to summarize series data and show in title?
- Highcharts show the same yAxis start and end value with multiple data series
- Highcharts - Show the percentage difference between data points on a series
- Show Data For Grouped Series in ToolTip Highcharts
- Highcharts series doesnt show data and render the chart
- Highcharts series visibility with csv data source
- How to have multiple highcharts with different series data in vuejs without repeating code
- Highcharts: Is it possible to show Sunburst chart series data labels outside the leaf level nodes with connectors?
- Highcharts show title text overlayed on Series Pane
- Show live data on Highcharts without default series
- Highcharts displays series names but missing data points from json source
- Highcharts data from Google spreadsheet show line chart for one series
- Set Additional Data to highcharts series
- Proper way to remove all series data from a highcharts chart?
- Changing data dynamically for a series in Highcharts
- Add additional data to a Highcharts series for use in formatters
- How to show No Data Available Message in highcharts
- Highcharts How to Show Loading Animation At Set Data
- Get Highcharts Series Data after Load
- Highcharts doesn't display series with lots of data points
- Highcharts data series issue with ajax/json and PHP
- Changing Highcharts data series type dynamically
- Highcharts series data array
- Use an array of objects for series data in Highcharts
- Show specific series values in the stack label using highcharts
- Highcharts how to use JavaScript variable as series data source?
- How to get multiple data series into Highcharts
- Highcharts with JSON data and multiple series
- Highcharts - Provide URL's for series data to open clickable link
- Find number of data points in each series in highcharts
- hide specific point in a HighCharts scatterplot
- highchart change chart by choosing month in drop down
- Heatmap: Get related data of the hovered cell on mouseOver
- Looking for a line chart drill down to area chart using Highcharts
- Highcharts column width on a time series axis
- Rotating the highchart
- Highcharts/Highstocks: Chart disappears when value is 0
- High Chart different color for one column
- Show only discontinuous points in Highcharts line graph
- Highcharts navigator error: Invalid negative value for <rect> attribute width
- Scrollbar for y-axis is not showing in highcharts?
- Highcharts sankey draggable nodes
- call function onclick highchart
- How to make 3 different color on Highcharts
- HighCharts : Xaxis lables misplaced
- ng-highcharts not available
- Highcharts bubbles incorrect initial size, changes on resize
- Highchart : How to plot Stacked bar graph with line by below JSON respons
- Highmaps - Issue with Internet Explorer
- Multiple chart export in HighChart is not same as the one displayed on the screen