question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Start week on Monday instead of Sunday

See original GitHub issue

I would like my calendar to start on Mondays instead of Sundays. I’ve looked through the docs and the source code but I could not find any optional settings for this.

calendar heatmap

And also, changing the weekdayLabels aka filling in the empty spots in the array does not seem to be working as well.

weekdayLabels={['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']}

Is this something that could be done?

Thanks!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:13
  • Comments:6

github_iconTop GitHub Comments

2reactions
panuhorsmalahticommented, Aug 21, 2018

The empty spots are not rendered because of this: return dayIndex & 1 ? ( https://github.com/patientslikeme/react-calendar-heatmap/blob/master/src/index.jsx#L300

It would be easy to add a config option e.g. showAllWeekdayLabels.

0reactions
Zandor300commented, Jul 5, 2022

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the First Day of the Week? - Calendarr
In the United States, Sunday is still considered the first day of the week, while Monday is the first day of the working...
Read more >
Why does the week start on Sunday in some calendars and on ...
Sunday is the first day of the week. "Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday". Saturday is the last day of the week....
Read more >
Which day do you consider the start of the week? - ABC News
Your week may start on Sunday, Monday or even Saturday depending on cultural beliefs. (Supplied: Marco Verch).
Read more >
What Is the First Day of the Week? - Time and Date
Sunday is the first day of the week for roughly half the world. Monday is the first day of the week for the...
Read more >
Changing the Week start date on Weekly Timeline to a ...
Changing the Week start date on Weekly Timeline to a Monday ; acnotpc (Andy Challoner) March 31, 2020, 3:32pm #1 ; basdebruin (Bas...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found