mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[table] Allowing to show the time grain in table view (#2294)
Explicitely request to show the time grain in the table view as a checkbox
This commit is contained in:
committed by
GitHub
parent
4d349c7885
commit
c894c54d00
@@ -188,6 +188,13 @@ export const controls = {
|
||||
'displaying the Y scale',
|
||||
},
|
||||
|
||||
include_time: {
|
||||
type: 'CheckboxControl',
|
||||
label: 'Include Time',
|
||||
description: 'Whether to include the time granularity as defined in the time section',
|
||||
default: false,
|
||||
},
|
||||
|
||||
bar_stacked: {
|
||||
type: 'CheckboxControl',
|
||||
label: 'Stacked Bars',
|
||||
|
||||
@@ -236,6 +236,7 @@ const visTypes = {
|
||||
description: 'Use this section if you want a query that aggregates',
|
||||
controlSetRows: [
|
||||
['groupby', 'metrics'],
|
||||
['include_time'],
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -259,6 +260,9 @@ const visTypes = {
|
||||
default: null,
|
||||
validators: null,
|
||||
},
|
||||
time_grain_sqla: {
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user