-
Notifications
You must be signed in to change notification settings - Fork 46
Pivottable.js Parameters
When using pivot()
API, to make use of the aggregators provided by this plugin, value of aggregator
parameter must be set to $.pivotUtilities.subtotal_aggregators[<*name of a subtotal aggregator*>]
. Aggregator name can be one of the following:
"Count As Fraction Of Parent Row"
"Count As Fraction Of Parent Column"
"Sum As Fraction Of Parent Row"
"Sum As Fraction Of Parent Column"
$.pivotUtilities.subtotal_aggregators
is a dictionary of aggregators specific to this plugin. Value of aggregators
parameter must be set to $.pivotUtilities.subtotal_aggregators
.
When using pivot()
or pivotUI()
API, value of dataClass
parameter must be set to $.pivotUtilities.SubtotalPivotData
.
When using pivot()
API, value of renderer
parameter must be set to $.pivotUtilities.subtotal_renderers[<*name of a subtotal renderer*>]
. Renderer name can be one of the following:
"Table With Subtotal"
"Table With Subtotal Bar Chart"
"Table With Subtotal Heatmap"
"Table With Subtotal Row Heatmap"
"Table With Subtotal Col Heatmap"
When using pivotUI()
API, value of renderers
parameter must be set to $.pivotUtilities.subtotal_renderers
.
When using pivotUI()
API, rendererName
can take one of the following values:
"Table With Subtotal"
"Table With Subtotal Bar Chart"
"Table With Subtotal Heatmap"
"Table With Subtotal Row Heatmap"
"Table With Subtotal Col Heatmap"