-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
I want to specify custom time grain #15037
Comments
@EBoisseauSierra thanks for the request. i like the idea we have been thinking about blending all time controls including time grain into one time range popover, eventually remove the concepts of time, and have it be a part of regular filter in Explore. this will be the next long tail project which requires lots of planning and design. lmk if your team is interested in collaborating cc @zhaoyongjie |
Actually, this is already possible via the |
When i using that but not working. TIME_GRAIN_ADDON_EXPRESSIONS = { What am I wrong? |
@lelelethu you need to use this in file superset_config.py it will get reflect TIME_GRAIN_ADDON_EXPRESSIONS = { |
I used this in superset_config.py file, it doesn't work and show me any options for some reason. TIME_GRAIN_ADDON_EXPRESSIONS = { |
Issue
I would like to aggregate my time-series charts on custom time grains. Currently only “1 unit” grains are available: 1s, 1min, 1h, 1 day, etc.
Yet I would like to be able to aggregate by, e.g., 5-minute, 15-minute, 6-hour time buckets.
Requested feature
I want to be able to define custom time grains.
This could happen either:
superset_config.py
): this has the advantage of ensuring that only admin specify time grains (greater chance for the definition to be correct and less burden on users) and enable it for any user in the already existing dropdown.15T
,6H
, etc. : easiest to implement, greatest flexibility, yet risk of parsing garbage)5
,6
, or15
+ dropdown menu to select the unitminute
,hour
, etc.)Alternative
None that I'm aware of.
Additional info
We'd like to have these time grains available to
pandas.resample
advanced feature as well.The text was updated successfully, but these errors were encountered: