<div class="col-fluid">
<table id="rrd-table" class="table table-striped table-hover"></table>
<div id="rrd-table_toggle"></div>
+ <div id="rrd-total">Total messages: <span id="rrd-total-value"></span></div>
</div>
</div>
}
function drawRrdTable(data, unit) {
+ var total_messages = 0;
var rows = data.map(function (curr, i) {
+ total_messages += curr.value;
return {
options: {
style: {
};
}, []);
+ document.getElementById('rrd-total-value').innerHTML = total_messages;
+
$('#rrd-table').footable({
sorting: {
enabled: true