Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not all selectedMap data is plotted depending on date range #7

Open
Sun3 opened this issue Mar 5, 2024 · 0 comments
Open

Not all selectedMap data is plotted depending on date range #7

Sun3 opened this issue Mar 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Sun3
Copy link

Sun3 commented Mar 5, 2024

I have noticed that depending on date range entered not all date is plotted.

The following example shows a date range from DateTime(2024, 1, 1) to DateTime(2024, 4, 31) and when you run it the April data is not plotted.

HeatmapCalendar<num>(
  startDate: DateTime(2024, 1, 1),
  endedDate: DateTime(2024, 4, 31),
  colorMap: {
    10: Theme.of(context)
        .primaryColor
        .withOpacity(0.2),
    20: Theme.of(context)
        .primaryColor
        .withOpacity(0.4),
    30: Theme.of(context)
        .primaryColor
        .withOpacity(0.6),
    40: Theme.of(context)
        .primaryColor
        .withOpacity(0.8),
    50: Theme.of(context).primaryColor,
  },
  selectedMap: {
    DateTime(2024, 1, 1): 20,
    DateTime(2024, 1, 30): 30,
    DateTime(2024, 1, 23): 40,
    DateTime(2024, 1, 16): 50,
    DateTime(2024, 1, 9): 10,
    DateTime(2024, 1, 3): 10,
    DateTime(2024, 1, 4): 10,
    DateTime(2024, 1, 12): 10,
    DateTime(2024, 1, 19): 10,
    DateTime(2024, 1, 26): 10,
    DateTime(2024, 1, 29): 10,
    DateTime(2024, 1, 22): 10,
    DateTime(2024, 1, 15): 10,
    DateTime(2024, 1, 8): 10,
    DateTime(2024, 2, 3): 10,
    DateTime(2024, 2, 4): 20,
    DateTime(2024, 2, 13): 10,
    DateTime(2024, 2, 20): 30,
    DateTime(2024, 2, 27): 20,
    DateTime(2024, 2, 21): 25,
    DateTime(2024, 2, 22): 30,
    DateTime(2024, 2, 23): 20,
    DateTime(2024, 2, 24): 40,
    DateTime(2024, 2, 25): 50,
    DateTime(2024, 2, 26): 50,
    DateTime(2024, 2, 19): 30,
    DateTime(2024, 3, 5): 10,
    DateTime(2024, 3, 19): 10,
    DateTime(2024, 3, 18): 10,
    DateTime(2024, 3, 17): 30,
    DateTime(2024, 3, 16): 10,
    DateTime(2024, 3, 15): 10,
    DateTime(2024, 3, 14): 10,
    DateTime(2024, 3, 13): 30,
    DateTime(2024, 3, 20): 10,
    DateTime(2024, 3, 27): 30,
    DateTime(2024, 4, 1): 10,
    DateTime(2024, 4, 2): 20,
    DateTime(2024, 4, 3): 30,
    DateTime(2024, 4, 4): 40,
    DateTime(2024, 4, 5): 50,
    DateTime(2024, 4, 6): 10,
    DateTime(2024, 4, 7): 20,
  },
  switchParameters:
      const HeatmapSwitchParameters
          .defaults(
    showCellText: true,
  ),
  colorTipCellSize:
      const Size.square(12.0),
  layoutParameters:
      const HeatmapLayoutParameters
          .defaults(
    monthLabelPosition:
        CalendarMonthLabelPosition.top,
    weekLabelPosition:
        CalendarWeekLabelPosition.right,
    colorTipPosition:
        CalendarColorTipPosition.bottom,
  ),
),

Any ideas?
Thanks

@FriesI23 FriesI23 added the bug Something isn't working label Mar 6, 2024
@FriesI23 FriesI23 self-assigned this Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants