Skip to content

Commit

Permalink
[metric] Fixing ad-hoc metric for dual-line chart (apache#5271)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored Jun 22, 2018
1 parent 7de5023 commit ca5cc67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,7 @@ def to_series(self, df, classed=''):
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
Expand Down

0 comments on commit ca5cc67

Please sign in to comment.