mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
Treemap vis verbose metric name (#3237)
* Change hardcoded references to 'User' security model to allow custom class override * verbose metric name in treemap * Linting
This commit is contained in:
parent
2ef9bfed20
commit
7190cf8e77
@ -218,7 +218,7 @@ function treemap(slice, payload) {
|
||||
const name = function (d) {
|
||||
return d.parent
|
||||
? name(d.parent) + ' / ' + d.name + ' (' + formatNumber(d.value) + ')'
|
||||
: d.name + ' (' + formatNumber(d.value) + ')';
|
||||
: (slice.datasource.verbose_map[d.name] || d.name) + ' (' + formatNumber(d.value) + ')';
|
||||
};
|
||||
|
||||
initialize(data);
|
||||
|
Loading…
Reference in New Issue
Block a user