Skip to content

Commit

Permalink
fix a bug in pie chart (#2423)
Browse files Browse the repository at this point in the history
* fix a bug in pie chart

* remove unnecessary line
  • Loading branch information
yileic authored and mistercrunch committed Mar 21, 2017
1 parent e2b572d commit 82bc907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 82bc907

Please sign in to comment.