mirror of
https://github.com/apache/superset.git
synced 2026-05-11 02:45:46 +00:00
feat: Adds options to show subtotals in Pivot Table (#24960)
(cherry picked from commit be11556799)
This commit is contained in:
committed by
Michael S. Molina
parent
dd53b334d6
commit
4b07b5d628
@@ -218,6 +218,18 @@ const config: ControlPanelConfig = {
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
{
|
||||
name: 'rowSubTotals',
|
||||
config: {
|
||||
type: 'CheckboxControl',
|
||||
label: t('Show rows subtotal'),
|
||||
default: false,
|
||||
renderTrigger: true,
|
||||
description: t('Display row level subtotal'),
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
{
|
||||
name: 'colTotals',
|
||||
@@ -230,6 +242,18 @@ const config: ControlPanelConfig = {
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
{
|
||||
name: 'colSubTotals',
|
||||
config: {
|
||||
type: 'CheckboxControl',
|
||||
label: t('Show columns subtotal'),
|
||||
default: false,
|
||||
renderTrigger: true,
|
||||
description: t('Display column level subtotal'),
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
{
|
||||
name: 'transposePivot',
|
||||
|
||||
@@ -96,7 +96,9 @@ export default function transformProps(chartProps: ChartProps<QueryFormData>) {
|
||||
rowSubtotalPosition,
|
||||
colSubtotalPosition,
|
||||
colTotals,
|
||||
colSubTotals,
|
||||
rowTotals,
|
||||
rowSubTotals,
|
||||
valueFormat,
|
||||
dateFormat,
|
||||
metricsLayout,
|
||||
@@ -155,7 +157,9 @@ export default function transformProps(chartProps: ChartProps<QueryFormData>) {
|
||||
rowSubtotalPosition,
|
||||
colSubtotalPosition,
|
||||
colTotals,
|
||||
colSubTotals,
|
||||
rowTotals,
|
||||
rowSubTotals,
|
||||
valueFormat,
|
||||
emitCrossFilters,
|
||||
setDataMask,
|
||||
|
||||
Reference in New Issue
Block a user