superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnbod...@apache.org
Subject [incubator-superset] branch master updated: [metric] Fixing ad-hoc metric for dual-line chart (#5271)
Date Fri, 22 Jun 2018 21:31:52 GMT
This is an automated email from the ASF dual-hosted git repository.

johnbodley 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 ca5cc67  [metric] Fixing ad-hoc metric for dual-line chart (#5271)
ca5cc67 is described below

commit ca5cc672ca4e074bc7b2e6ee1b3084f4b741acd3
Author: John Bodley <4567245+john-bodley@users.noreply.github.com>
AuthorDate: Fri Jun 22 14:31:43 2018 -0700

    [metric] Fixing ad-hoc metric for dual-line chart (#5271)
---
 superset/viz.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/superset/viz.py b/superset/viz.py
index 769a1af..89b8065 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -1317,6 +1317,7 @@ class NVD3DualLineViz(NVD3Viz):
             self.form_data.get('metric_2'),
         ]
         for i, m in enumerate(metrics):
+            m = utils.get_metric_name(m)
             ys = series[m]
             if df[m].dtype.kind not in 'biufc':
                 continue


Mime
View raw message