A JavaScript plugin for PivotTable.js. It renders subtotals of rows and columns with the ability to expand and collapse rows and columns
Following issues resolved in this release:
Following options deprecated from this release:
Following new options are introduced in this release:
Lots of code refactoring is done to simplify the logic. Examples updated. New tests are added.
Disable subtotals on column #27. Thanks to @sroche-tec for feedback and testing the changes.
WARNING: Backward Compatibility Breaking Change.
Changed rowSubtotalDisplay
and colSubtotalDisplay
renderer options to support following properties:
disableSubtotal
disableExpandCollapse
hideOnExpand
This release adds support to hide subtotal rows and/or subtotal columns on expand (Issue: #26). Thanks to @Dams591 for the feedback.
Following new rendererOptions
added:
These options can take one of the following values:
Fixed the issue of broken tests. Details at: #25
_Changes in Version 1.6.0_
Adding colTotal and rowTotal class names to headers #24 - Thanks to PR by @cesartl
Following new Subtotal.js specific aggregators implemented - #2 Please refer to this example.
$.pivotUtilities.subtotal_aggregators
"Count As Fraction Of Parent Row" "Count As Fraction Of Parent Column" "Sum As Fraction Of Parent Row" "Sum As Fraction Of Parent Column"
Test cases are rewritten to test the functionality of this plugin - #1 Run tests from here
Adding colTotal and rowTotal class names to headers #24 - Thanks to PR by @cesartl
Following new Subtotal.js specific aggregators implemented - #2 Please refer to this example.
$.pivotUtilities.subtotal_aggregators
"Count As Fraction Of Parent Row" "Count As Fraction Of Parent Column" "Sum As Fraction Of Parent Row" "Sum As Fraction Of Parent Column"
Test cases are rewritten to test the functionality of this plugin - #1 Run tests from here
expanded
and collapsed
applied to labels for #20 styling collapsable labels by @zam6akarrowCollapsed
and arrowExpanded
to customize default arrow characters