nivo icon indicating copy to clipboard operation
nivo copied to clipboard

Allow calandar heatmap to start on monday instead of sunday

Open alexus37 opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. A lot people are starting their week on Monday however, in the calendar heatmap the first column/row is Sunday.

Describe the solution you'd like Add an option to start the calendar on Monday or any day of the week?

Describe alternatives you've considered Could not find any

Additional context 165492192-9f43e7da-a3c2-450a-be50-04c631379267

alexus37 avatar Jun 22 '22 21:06 alexus37

related to #1832

tkonopka avatar Jun 23 '22 06:06 tkonopka

I think this requires a modification in compute/calender.ts where for both functions cellPositionVertical and cellPositionHorizontal d.getDay() should be replaced with (d.getDay() -StartDayIndex)%7

with StartDayIndex = 1 for Mondays.

However, I am not sure how to best pass this argument down.

MarcoMorik avatar Jun 23 '22 10:06 MarcoMorik

bump

DobroslavR avatar Jul 21 '22 22:07 DobroslavR

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

stale[bot] avatar Oct 19 '22 23:10 stale[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

stale[bot] avatar Nov 07 '22 05:11 stale[bot]

bump

thomasbaronnet avatar Jan 20 '23 08:01 thomasbaronnet