aeyrium/bezier-chart

Create 15 minutes scale

JoeCapo87 opened this issue · 2 comments

Hi @diegoveloper , i'm trying to create a scale to display data in 15 minutes steps, but even if i set 'Duration( minutes: (i + 15))', i have a point each minute. Where am i wrong?
I'm adding the class for you to check.

In the enum list i added a new item, QUARTER.

Schermata 2020-03-20 alle 13 26 17

Schermata 2020-03-20 alle 13 26 05

bezier_chart_widget.txt

i'm trying to create a scale to display data in 15 minutes steps, but even if i set 'Duration( minutes: (i + 15))', i have a point each minute

I solved this, as you can see the time interval between points is exactly 15 minutes (11:29 - 11:44):
Schermata 2020-03-21 alle 11 14 55
Schermata 2020-03-21 alle 11 15 09

The only problem is that the value for each point is wrong. It should vary as the time passes, but it stays the same only on this scale. Aggregation for this scale Is AVERAGE but the actual average for my dataset is different.