Skip to content
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

Merged
merged 1 commit into from
Jan 12, 2018

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Jan 12, 2018

Bug occurs only when using a groupby, not when using only metrics only

before

screen shot 2018-01-11 at 3 59 55 pm

after

screen shot 2018-01-11 at 3 59 31 pm

closes #4198

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
Copy link
Member

@john-bodley john-bodley Jan 12, 2018

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call

@hughhhh
Copy link
Member

hughhhh commented Jan 12, 2018

LGTM

Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mistercrunch mistercrunch merged commit 04680e5 into apache:master Jan 12, 2018
@mistercrunch mistercrunch deleted the fix_time_shift_color branch January 12, 2018 23:10
hughhhh pushed a commit to lyft/incubator-superset that referenced this pull request Jan 18, 2018
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.23.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.23.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Time comparison color is off
4 participants