A JavaScript plugin for PivotTable.js. It renders multiple aggregations simultaneously with added configurations for rendering beautiful tables http://pranjalgoswami.in/multifact-pivottable/examples/index.html
It will make it easy to apply styles, repeating the headers when printing or even making headers sticky on top for screen.
...
if(opts.table.prependRowTotals){
renderMeasuredHeadersForTotals();
renderMeasureHeadersForValues();
} else {
renderMeasureHeadersForValues();
renderMeasuredHeadersForTotals();
}
// tbody.appendChild(tr); // change this line with the line below
thead.appendChild(tr);
...
As a suggestion: Why the aggregators column names
It will make it easy to apply styles, repeating the headers when printing or even making headers sticky on top for screen.