EBoisseauSierra opened a new issue #15037:
URL: https://github.com/apache/superset/issues/15037
## 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:
* as a Superset instance specific variable (i.e. defining new time grains in
`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.
* in the Explore panel:
* let the user specify a “magic string” (e.g. `15T`, `6H`, etc. : easiest
to implement, greatest flexibility, yet risk of parsing garbage)
* build a GUI for it (number input to specify `5`, `6`, or `15` + dropdown
menu to select the unit `minute`, `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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]