mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
Preserve order of breakdowns in bar_dist (#302)
This commit is contained in:
committed by
Maxime Beauchemin
parent
ef992b6449
commit
b47ca785c7
@@ -926,9 +926,8 @@ class DistributionBarViz(DistributionPieViz):
|
||||
|
||||
def get_data(self):
|
||||
df = self.get_df()
|
||||
series = df.to_dict('series')
|
||||
chart_data = []
|
||||
for name, ys in series.items():
|
||||
for name, ys in df.iteritems():
|
||||
if df[name].dtype.kind not in "biufc":
|
||||
continue
|
||||
if isinstance(name, string_types):
|
||||
|
||||
Reference in New Issue
Block a user