mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
[explore] improve metric(s) and groupby(s) controls (#2921)
* [explore] improve metric(s) and groupby(s) controls - surface verbose_name, description & expression in controls - [table viz] surface verbose name in table header * Fixing tests * Addressing comments * Fixing tests (once more)
This commit is contained in:
committed by
GitHub
parent
34f381bc25
commit
16141ecb94
@@ -49,9 +49,11 @@ function tableVis(slice, payload) {
|
||||
'table-condensed table-hover dataTable no-footer', true)
|
||||
.attr('width', '100%');
|
||||
|
||||
const cols = data.columns.map(c => slice.datasource.verbose_map[c] || c);
|
||||
|
||||
table.append('thead').append('tr')
|
||||
.selectAll('th')
|
||||
.data(data.columns)
|
||||
.data(cols)
|
||||
.enter()
|
||||
.append('th')
|
||||
.text(function (d) {
|
||||
|
||||
Reference in New Issue
Block a user