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] growth vs factor option for 'Period Ratio' #970

Merged
merged 2 commits into from
Aug 17, 2016

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Aug 17, 2016

screen shot 2016-08-17 at 8 58 13 am

'period_ratio_type': (SelectField, {
"label": _("Period Ratio Type"),
"default": 'growth',
"choices": self.choicify(('factor', 'growth')),
Copy link
Contributor

Choose a reason for hiding this comment

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

i18n?

@mistercrunch
Copy link
Member Author

@xrmx good catch, I made the options translatable

@ascott
Copy link
Contributor

ascott commented Aug 17, 2016

💯 🚢

@mistercrunch mistercrunch merged commit 84213ab into apache:master Aug 17, 2016
@mistercrunch mistercrunch deleted the period_ratio_type branch August 17, 2016 19:26
@@ -1038,7 +1038,14 @@ def get_df(self, query_obj=None):
num_period_compare = form_data.get("num_period_compare")
if num_period_compare:
num_period_compare = int(num_period_compare)
df = (df / df.shift(num_period_compare)) - 1
prt = form_data.get('period_ratio_type')
Copy link
Member

Choose a reason for hiding this comment

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

@mistercrunch
would it make sense to add tests to the viz.py functions?

Copy link
Contributor

Choose a reason for hiding this comment

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

It would be awesome to know that viz are rendering :)

zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 17, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 24, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 25, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 26, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0 labels Feb 19, 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.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants