This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 7190cf8  Treemap vis verbose metric name (#3237)
7190cf8 is described below

commit 7190cf8e772db7ed871e80bbe530ec445d35d471
Author: Rich @ RadICS <r...@radics.co.uk>
AuthorDate: Fri Aug 4 18:07:03 2017 +0200

    Treemap vis verbose metric name (#3237)
    
    * Change hardcoded references to 'User' security model to allow custom 
class override
    
    * verbose metric name in treemap
    
    * Linting
---
 superset/assets/visualizations/treemap.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/assets/visualizations/treemap.js 
b/superset/assets/visualizations/treemap.js
index 3243dba..2a5a9c3 100644
--- a/superset/assets/visualizations/treemap.js
+++ b/superset/assets/visualizations/treemap.js
@@ -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);

-- 
To stop receiving notification emails like this one, please contact
['"comm...@superset.apache.org" <comm...@superset.apache.org>'].

Reply via email to