Skip to content

Commit

Permalink
[title] Fix issue with non-string names in series title (apache#5433)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored Aug 15, 2018
1 parent 680a36c commit 4e7d700
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -1527,11 +1527,9 @@ def get_data(self, df):
continue
if isinstance(name, string_types):
series_title = name
elif len(metrics) > 1:
series_title = ', '.join(name)
else:
l = [text_type(s) for s in name[1:]] # noqa: E741
series_title = ', '.join(l)
offset = 0 if len(metrics) > 1 else 1
series_title = ', '.join([text_type(s) for s in name[offset:]])
values = []
for i, v in ys.items():
x = i
Expand Down

0 comments on commit 4e7d700

Please sign in to comment.