Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
Fix stats, now they show sunday too
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovelinux committed Jun 20, 2022
1 parent 2819235 commit bf858bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/screens/home_tabs/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ class _WeeklyChartbar extends StatelessWidget {
charts.Series<int, String>(
id: 'Bookings',
colorFn: (_, __) => charts.MaterialPalette.blue.shadeDefault,
domainFn: (int v, _) => shortWeekDays[v],
domainFn: (int v, _) => shortWeekDays[v % 7],
measureFn: (int v, _) => bookingsPerWeekDay[v]?.length ?? 0,
data: List.generate(7, (index) => (index + 1) % 7, growable: false),
data: List.generate(7, (index) => index + 1, growable: false),
)
],
animate: true,
Expand Down

0 comments on commit bf858bf

Please sign in to comment.