EBoisseauSierra opened a new issue #14747:
URL: https://github.com/apache/superset/issues/14747


   ## Issue
   
   * Chart builders can specify the reporting time-range of a time-serie chart, 
and dashboard consumers can also modify that reporting time-range themselves 
using either dashboard (time) filter or the line chart time-range filter 
“footer”.
   * Only Chart builders can specify the granularity of aggregation over time.
   
   We believe it would be beneficial for Dashboard consumers to be able to 
change the aggregation granularity of the time-serie chart themselves.
   
   ## Features
   
   * Just like for the time range filter (cf. Line chart) that a dashboard 
consumer can “play with”, we would like to have a time granularity dropdown 
selector to modify how the metrics are aggregated against time.
   
   ![Screenshot from 2021-05-21 
10-54-25](https://user-images.githubusercontent.com/37387755/119119822-7c7b2900-ba23-11eb-8e7d-d78f33f9bf22.png)
   
   * Similarly, the “granularity change” event could be propagated to other 
charts in the dashboard (if “propagate” enabled in chart options),
   * Chart builder should have the possibility to {en, dis}able this feature 
(like for showing the range filter),
   * Chart builder should have the possibility to specify which time 
granularity to enable (i.e. they might want to not offer for “per-second” or 
“per-year” aggregation),
   * Possible time granularity should cover the different orders of magnitude 
(ms, s, min, h, day, week, month, quarter, year), but also — possibly 
user-defined — multiples thereof (1 min, 5 min, 15 min, 20 min, 30 min, etc.). 
This could either be pre-defined by the Chart builder and showed to Dashboard 
consumer as a fixed list of options they can chose from, or given as “you can 
have it all” selector where the Dashboard consumer can specify the time unit 
(ms, s, min, etc.) and the count thereof (1, 2, 5, etc.) they want to aggregate 
time with.
   
   ## Alternatives
   
   * One already-feasible possibility is to generate multiple charts with all 
the wished for granularities, and add tabs in the dashboard (one tab for each 
time granularity). This is however quite inefficient, as changing one graph 
definition actually leads to modify _n_ charts.
   * Another (not implemented yet) approach would be to offer time granularity 
as a dashboard-generic user input (and not chart specify) — cf. #14622.


-- 
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]

Reply via email to