mirror of
https://github.com/apache/superset.git
synced 2026-04-22 17:45:21 +00:00
add combine config for metrics in pivot table (#3086)
* add combine config for metrics in pivot table * change method to stack/unstack * update backendSync
This commit is contained in:
@@ -249,6 +249,14 @@ export const controls = {
|
||||
description: 'Sort bars by x labels.',
|
||||
},
|
||||
|
||||
combine_metric: {
|
||||
type: 'CheckboxControl',
|
||||
label: 'Combine Metrics',
|
||||
default: false,
|
||||
description: 'Display metrics side by side within each column, as ' +
|
||||
'opposed to each column being displayed side by side for each metric.',
|
||||
},
|
||||
|
||||
show_controls: {
|
||||
type: 'CheckboxControl',
|
||||
label: 'Extra Controls',
|
||||
|
||||
@@ -337,7 +337,7 @@ export const visTypes = {
|
||||
controlSetRows: [
|
||||
['groupby', 'columns'],
|
||||
['metrics', 'pandas_aggfunc'],
|
||||
['number_format', 'pivot_margins'],
|
||||
['number_format', 'combine_metric', 'pivot_margins'],
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user