Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #90 from john-bodley/john-bodley-cherry-picks
Browse files Browse the repository at this point in the history
[title] Fix issue with non-string names in series title (apache#5433)
  • Loading branch information
john-bodley authored Aug 15, 2018
2 parents 3ebe44f + 84adaab commit 2d7c833
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 @@ -1530,11 +1530,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 = [str(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 2d7c833

Please sign in to comment.