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