UNDO removing transition

This commit is contained in:
GithubAnon0000 2025-05-02 13:32:40 +02:00
parent 0f696b2cfa
commit 2652b16bd7
3 changed files with 25 additions and 23 deletions

@ -1 +1 @@
Subproject commit 376ae99eb47eae3c5e6298150162715423bc2e4e
Subproject commit 647e3cb0e697c51248201c4fb0df36514e765aa5

@ -1 +1 @@
Subproject commit 393bacec35703f91520e4d2feec37ed6953114f4
Subproject commit b3562ed3594d2afa0973edb877cc2f701ff162c3

View file

@ -130,27 +130,29 @@ export function renderButtons(
.domain(["learning", "young", "mature"])
.range([bounds.marginLeft, bounds.width - bounds.marginRight]);
svg.select<SVGGElement>(".x-ticks")
.call(
axisBottom(xGroup)
.tickFormat(
((d: GroupKind) => {
let kind: string;
switch (d) {
case "learning":
kind = tr.statisticsCountsLearningCards();
break;
case "young":
kind = tr.statisticsCountsYoungCards();
break;
case "mature":
default:
kind = tr.statisticsCountsMatureCards();
break;
}
return `${kind}`;
}) as any,
)
.tickSizeOuter(0),
.call((selection) =>
selection.transition(trans).call(
axisBottom(xGroup)
.tickFormat(
((d: GroupKind) => {
let kind: string;
switch (d) {
case "learning":
kind = tr.statisticsCountsLearningCards();
break;
case "young":
kind = tr.statisticsCountsYoungCards();
break;
case "mature":
default:
kind = tr.statisticsCountsMatureCards();
break;
}
return `${kind}`;
}) as any,
)
.tickSizeOuter(0),
)
)
.attr("direction", "ltr");