You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I've stuck with the problem trying to implement custom granularities in my pivot-based app.
I want to add an input to set custom time periods, e.g. P15D, P3W and so on.
But i've found that TimeBucketAction has a condition in it's constructor duration.isFloorable() that depends on siblings field for different shifter (60 for seconds and minutes, 24 for hours, 12 for month and so on), but days and weeks have no siblings at all, so i can't set any value for days other than 1.
So, I have two questions:
Why is there such a restriction and why i can's set values for days other then 1(first thought that there can be different number of days in a year)?
Is there some solution to set custom time periods?
Thank you!
The text was updated successfully, but these errors were encountered:
Hi! I've stuck with the problem trying to implement custom granularities in my pivot-based app.
I want to add an input to set custom time periods, e.g. P15D, P3W and so on.
But i've found that
TimeBucketAction
has a condition in it's constructorduration.isFloorable()
that depends onsiblings
field for differentshifter
(60 for seconds and minutes, 24 for hours, 12 for month and so on), but days and weeks have no siblings at all, so i can't set any value for days other than 1.So, I have two questions:
Thank you!
The text was updated successfully, but these errors were encountered: