Skip to content

[BUG] Cycle Length Variance Months Assignment Incorrect #512

Description

@AntonWittig

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:

  1. Log 2-3 Periods (24.3.-1.5., 2.5.-1.6.(, 2.6.-5.7.))
  2. Go to 'Insights'
  3. Scroll down to 'Cycle Length Variance'
  4. 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
Screenshot_2026-07-07-09-13-50-78_62044bcb114987ff67e9d39c03772419.jpg

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions