From a9bc82f763b2efd64b1735b5f718d8acf3f29f4e Mon Sep 17 00:00:00 2001 From: Srg Date: Wed, 19 Sep 2018 14:06:09 +1000 Subject: [PATCH] added hack to make time pivot chart working --- superset/viz.py | 1 + 1 file changed, 1 insertion(+) diff --git a/superset/viz.py b/superset/viz.py index e36df190c1d76..ef848e5cbfe02 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -1376,6 +1376,7 @@ def query_obj(self): return d def get_data(self, df): + self.form_data['metrics'] = [self.form_data.get('metric')] fd = self.form_data df = self.process_data(df) freq = to_offset(fd.get('freq'))