-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[line chart] fix time shift color #4202
Conversation
superset/viz.py
Outdated
@@ -939,7 +939,7 @@ def to_series(self, df, classed='', title_suffix=''): | |||
if isinstance(series_title, string_types): | |||
series_title += title_suffix | |||
elif title_suffix and isinstance(series_title, (list, tuple)): | |||
series_title = series_title + (title_suffix,) | |||
series_title = str(series_title[-1]) + title_suffix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the series title contain unicode characters? If so should this be six.text_type(...)
rather than str(...)
, or maybe use,
from builtins import str
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call
4c78cd4
to
7e40d8a
Compare
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Bug occurs only when using a groupby, not when using only metrics only
before
after
closes #4198