Skip to content

Commit 9424347

Browse files
committed
move weekdays to ONEDAY bucket
1 parent e220b65 commit 9424347

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/cartesian/axes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,8 @@ axes.calcTicks = function calcTicks(ax, opts) {
712712
!_has('%X') // the locale’s time, such as %-I:%M:%S %p
713713
) {
714714
if(
715+
_has('%A') || // full weekday name
716+
_has('%a') || // abbreviated weekday name
715717
_has('%d') || // zero-padded day of the month as a decimal number [01,31]
716718
_has('%e') || // space-padded day of the month as a decimal number [ 1,31]
717719
_has('%j') || // day of the year as a decimal number [001,366]
@@ -720,8 +722,6 @@ axes.calcTicks = function calcTicks(ax, opts) {
720722
_has('%x') // the locale’s date, such as %-m/%-d/%Y
721723
) definedDelta = ONEDAY;
722724
else if(
723-
_has('%A') || // full weekday name
724-
_has('%a') || // abbreviated weekday name
725725
_has('%U') || // Sunday-based week of the year as a decimal number [00,53]
726726
_has('%V') || // ISO 8601 week of the year as a decimal number [01, 53]
727727
_has('%W') // Monday-based week of the year as a decimal number [00,53]

0 commit comments

Comments
 (0)