chartjs/chartjs-adapter-moment

Fix startOf function for isoWeek

stockiNail opened this issue · 0 comments

The startOf function is accepting a boolean for Sunday(false) and Monday(true).

Instead it should get the the week day (number) between 0 (Sunday) and 6(Saturday) in order to be more flexible to provide the startOf the week based on the parameter.

See chartjs/chartjs-adapter-luxon#23