Choosing the beginning day of the week
The circles always seem to start on sunday, even if the labels start on monday. Would be important to choose the starting day of the week.
Good point! There was a discrepancy because of hardcoded weekdays array starting on a Monday.
Ideally we would want an optional setting passed to the directive indicating first day of the week. However since we are using moment.js we don't want to override locale setting for the entire application. The solution would be to temporarily override this setting for the purpose of the heatmap and nothing else.
For now I've fixed this by making by day labels use global moment.js locale setting: https://github.com/g1eb/angular-calendar-heatmap/commit/b12c692532b0c0167ed42dc80ef5da60bdaef52a
Thank you for your feedback! :)
Yeah, I see what you did. We can simply change 'week' for 'isoweek' for moment.js to change the starting day.
For the purpose I think it is enough. If you plan to implement the setting to be passed to the directive, let us know.
I'll be giving you some feedback, since I will use the calendar on my work.
Cheers!