nivo
nivo copied to clipboard
Allow calandar heatmap to start on monday instead of sunday
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
related to #1832
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.
bump
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!
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!
bump