We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f68189b commit c9da193Copy full SHA for c9da193
superset/viz.py
@@ -1088,13 +1088,13 @@ def query_obj(self):
1088
d = super(DistributionBarViz, self).query_obj() # noqa
1089
fd = self.form_data
1090
if (
1091
- len(self.groupby) <
+ len(d['groupby']) <
1092
len(fd.get('groupby') or []) + len(fd.get('columns') or [])
1093
):
1094
raise Exception("Can't have overlap between Series and Breakdowns")
1095
- if not self.metrics:
+ if not fd.get('metrics'):
1096
raise Exception("Pick at least one metric")
1097
- if not self.groupby:
+ if not fd.get('groupby'):
1098
raise Exception("Pick at least one field for [Series]")
1099
return d
1100
0 commit comments