Skip to content

Commit

Permalink
feat: make showWeekScale activate week number majorLabels for day scale
Browse files Browse the repository at this point in the history
  • Loading branch information
dennissterzenbach authored and mojoaxel committed Jul 10, 2022
1 parent cfe2584 commit c1a39d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/timeline/TimeStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ class TimeStep {
return (date.hours() == 0);
case 'weekday': // intentional fall through
case 'day':
return (date.date() == 1);
return this.options.showWeekScale ? (date.day() == 1) : (date.date() == 1);
case 'week':
return (date.date() == 1);
case 'month':
Expand Down

0 comments on commit c1a39d8

Please sign in to comment.