diff --git a/superset/viz.py b/superset/viz.py index 9dafb9b4edc99..ebab053a0cec0 100755 --- a/superset/viz.py +++ b/superset/viz.py @@ -1089,7 +1089,7 @@ def get_data(self, df): index=self.groupby, values=[self.metrics[0]]) df.sort_values(by=self.metrics[0], ascending=False, inplace=True) - df = self.get_df() + df = df.reset_index() df.columns = ['x', 'y'] return df.to_dict(orient="records")