Add 'Aggregate' functions to widgets

Description

Summary

Today our widgets present real time historic values or the last value of the devices. It would be great to add some options to the charts and gauges so that developers could present the average, sum, min, and max values of data.

How will it work?

Developers will choose which aggregation function they want to use in the widget after selecting the Variable.

Activity