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

Dynamic dimension granularity #12

Open
mnort9 opened this issue Oct 26, 2017 · 1 comment
Open

Dynamic dimension granularity #12

mnort9 opened this issue Oct 26, 2017 · 1 comment

Comments

@mnort9
Copy link

mnort9 commented Oct 26, 2017

Any way to dynamically switch dimension granularity (day/week), similar to passing arguments to context_params?

@nsoseka
Copy link

nsoseka commented Jul 4, 2019

Hi
If i understand your question well, you need to group your data by day/week. I don't think this comes straight out of the box for you with report_skits. So you might consider setting up your custom data methods and then you pass in the date range.
Because report_skit groups the groupdate gem by ankane you can for example do this on the User model

User.group_by_day(:created_at)
or
User.group_by_week(:created_at)

And then call your data methods in your yml file. If you need more clarity on this, i am here to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants