Display charts using MAX() or SUM()

:wrapped_gift: A little bonus for this new feature

Being able to choose the aggregation function is nice… but it’s not enough!

I think it’s essential to also be able to group values by time interval: by hour, by day, by week, by month, or even by year.

:backhand_index_pointing_right: That’s why I’m offering a new option in the charts to enable this time-based grouping:


Since editing the widget was getting a bit long for charts, I also added a button to hide advanced options by default. The user can then expand them only if they need to:


With this development, we cover all use cases:

  • Sum of values per day :white_check_mark: (group by day + « sum » function)
  • Count the number of values sent by a sensor per week :white_check_mark:
  • Average temperature per month :white_check_mark:
  • And much more…

In short: everything is now possible! :smiley:

The PR:

4 Likes