Skip to content

Commit afcb8bc

Browse files
committed
tweak comment
1 parent e31f20d commit afcb8bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/marks/axis.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -584,10 +584,10 @@ function axisMark(mark, k, anchor, ariaLabel, data, options, initialize) {
584584
data = domain;
585585
}
586586
if (!scale.ticks && data.length && data !== domain) {
587-
// For ordinal scales, intersect the ticks with the scale domain, if
588-
// any, since the scale is only defined on its domain. If all of the
589-
// ticks are removed, then warn that the ticks and scale domain may be
590-
// misaligned (e.g., "year" ticks and "4 weeks" interval).
587+
// For ordinal scales, intersect the ticks with the scale domain since
588+
// the scale is only defined on its domain. If all of the ticks are
589+
// removed, then warn that the ticks and scale domain may be misaligned
590+
// (e.g., "year" ticks and "4 weeks" interval).
591591
const domainSet = new InternSet(domain);
592592
data = data.filter((d) => domainSet.has(d));
593593
if (!data.length) warn(`Warning: the ${k}-axis ticks appear to not align with the scale domain, resulting in no ticks. Try different ticks?`); // prettier-ignore

0 commit comments

Comments
 (0)