timeSeriesGroupRateSum(uid, ts, val)
Similarly to timeSeriesGroupSum,
timeSeriesGroupRateSum calculates the rate of time-series and then sum rates together.
Also, timestamp should be in ascend order before use this function.
Applying this function to the data from the
timeSeriesGroupSum example, you get the following result: