mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
migrating controls 🎛 (#9386)
This commit is contained in:
@@ -34,9 +34,45 @@ export default {
|
||||
{
|
||||
label: t('Pivot Options'),
|
||||
controlSetRows: [
|
||||
['pandas_aggfunc', 'pivot_margins'],
|
||||
['number_format', 'combine_metric'],
|
||||
['transpose_pivot'],
|
||||
[
|
||||
'pandas_aggfunc',
|
||||
{
|
||||
name: 'pivot_margins',
|
||||
config: {
|
||||
type: 'CheckboxControl',
|
||||
label: t('Show totals'),
|
||||
renderTrigger: false,
|
||||
default: true,
|
||||
description: t('Display total row/column'),
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
'number_format',
|
||||
{
|
||||
name: 'combine_metric',
|
||||
config: {
|
||||
type: 'CheckboxControl',
|
||||
label: t('Combine Metrics'),
|
||||
default: false,
|
||||
description: t(
|
||||
'Display metrics side by side within each column, as ' +
|
||||
'opposed to each column being displayed side by side for each metric.',
|
||||
),
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
{
|
||||
name: 'transpose_pivot',
|
||||
config: {
|
||||
type: 'CheckboxControl',
|
||||
label: t('Transpose Pivot'),
|
||||
default: false,
|
||||
description: t('Swap Groups and Columns'),
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user