Skip to content

Commit

Permalink
Treemap vis verbose metric name (#3237)
Browse files Browse the repository at this point in the history
* Change hardcoded references to 'User' security model to allow custom class override

* verbose metric name in treemap

* Linting
  • Loading branch information
RichRadics authored and mistercrunch committed Aug 4, 2017
1 parent 2ef9bfe commit 7190cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/assets/visualizations/treemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7190cf8

Please sign in to comment.