mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix a bug in pie chart (#2423)
* fix a bug in pie chart * remove unnecessary line
This commit is contained in:
committed by
Maxime Beauchemin
parent
e2b572d9e2
commit
82bc907088
@@ -1089,7 +1089,7 @@ class DistributionPieViz(NVD3Viz):
|
||||
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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user