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 Query
- HighCharts: Possible to summarize series data and show in title?
- Highcharts show the same yAxis start and end value with multiple data series
- Highcharts series doesnt show data and render the chart
- Highcharts data series issue with ajax/json and PHP
- Highcharts with JSON data and multiple series
- Highcharts - Global configuration with common code and unique data & Headings
- Setting Highcharts Series and Category data dynamically
- Animation behave differently between initial load and dynamic data series replacement in Highcharts
- Highcharts - how to create multiple y axis and group the data series
- Highcharts error when add and shift data to hidden series
- Highcharts series showing different data for 'column' and 'line' chart
- Highcharts - Show the percentage difference between data points on a series
- Show Data For Grouped Series in ToolTip Highcharts
- Unable to create Highchart where i can show different - different data on clicking category and series
- How to show values in Highcharts tooltip other than x and y when data points are too high?
- Highcharts single horizontal stacked bar chart with data names (labels) and %-ages always shown and data numbers and series name shown on mousehover
- HighCharts: Compare the series data with each other and show percentage
- Highcharts series visibility with csv data source
- How do you convert time series data with pandas and show graph via highstock
- React: How to show correct date and plot data as Months in Highcharts
- How to have multiple highcharts with different series data in vuejs without repeating code
- Highcharts Highstock How to Plot OHLC and Line Charts from One Set of Embedded CSV Data Using Series Map Tools?
- series name and data for highcharts assigned via loop
- Highcharts: Is it possible to show Sunburst chart series data labels outside the leaf level nodes with connectors?
- Highcharts sort series data and redraw
- HIGHCHARTS - Given a series with UNIX stamps and values pairs for the data, how do I show only the date for the first and last point on xAxis?
- Highcharts show title text overlayed on Series Pane
- using a few data columns to plot chart and some to show on tooltip highcharts
- Show live data on Highcharts without default series
- Want to take difference between single series data and show them on chart in highcharts/highstock
More Query from same tag
- Chart not fill all the page in A4 format when printing. (highcharts)
- Disable tooltip only for months and days in Highcharts
- y-axes of Highcharts line chart
- How to customize the crosshair Line for Highcharts
- Customize colors for boxplot with highcharter
- Plotting multiple points in highchart timeseries
- HighCharts/Highstock: How to programmatically draw the mouse line
- Node-highcharts module not found
- HighCharts multiple data points per category
- Highcharts - display dates in heatmap
- Highchart multi axes labels not showing
- How to enable marker on hover only for a range of points in highcharts
- Extending Area to full width of Chart with Months on x-axis
- Highcharts - Remove "hover" state from chart point (that was set externally)
- In HighCharts, how can I make the color for each plotted point in an array dependent on a value in a corresponding array?
- Highcharts: reading data from a dictionary stored in a text file
- How to display highchart y axis with constistant data
- Creating Highcharts with Angular using Highcharts >= 5.0.0 and highcharts-ng >= 1.0.0 using a ChartFactory
- Plotting line in linechart according to specific math formula
- Drilldown displayed in coloum instead of pie chart
- Highcharts spline and columnrange inverted
- Loading Multiple Series in Highcharts dynamically returns errors
- highcharts series remove function deletes all original series data (even after stored in new variable)
- Need legends in high chart to be square shape
- Highcharts - Bubble chart - Moving gridlines
- Highcharts - fire legendItemClick event
- Highstock data not showing when setting xAxis min and max
- Highcharts resize chart size using custom export button and replace expand and collapse button dynamically
- Angular: updating view with value passed from directive to controller
- Highcharts - SMA Indicator does not display