This is a JavaScript plugin for PivotTable.js. It renders rows and columns of a pivot table with subtotals and lets the user expand or collapse rows and columns. It has been forked from Subtotal.js to provide support for multiple aggregates.
This plugin has been designed for use with the Looker Custom Visualization API and includes Looker-specific styles and themes. See that repository for details.