Describe the bug
In the period tracking insights tab, under the heading "Cycle Length Variance", the graph displays the wrong month to cycle length assignment. The months are in the correct order from left to right (Mar, May, Jun) but the assigned lengths are not correct: The length of Jun is switched with the length of Mar (and before the period for Jun was logged Mar & May were switched). From the current data it seems the first and last months are switched.
To Reproduce
Steps to reproduce the behavior:
- Log 2-3 Periods (24.3.-1.5., 2.5.-1.6.(, 2.6.-5.7.))
- Go to 'Insights'
- Scroll down to 'Cycle Length Variance'
- See error in Graph
Expected behavior
I would expect the lengths of the periods to be assigned to the correct months. Given the dates mentioned in the 'To Reproduce' part the graph should display: Mar=38, May=31(, Jun=34).
Screenshots

Describe the bug
In the period tracking insights tab, under the heading "Cycle Length Variance", the graph displays the wrong month to cycle length assignment. The months are in the correct order from left to right (Mar, May, Jun) but the assigned lengths are not correct: The length of Jun is switched with the length of Mar (and before the period for Jun was logged Mar & May were switched). From the current data it seems the first and last months are switched.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the lengths of the periods to be assigned to the correct months. Given the dates mentioned in the 'To Reproduce' part the graph should display: Mar=38, May=31(, Jun=34).
Screenshots
