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,7 +130,8 @@ 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) =>
selection.transition(trans).call(
axisBottom(xGroup) axisBottom(xGroup)
.tickFormat( .tickFormat(
((d: GroupKind) => { ((d: GroupKind) => {
@ -152,6 +153,7 @@ export function renderButtons(
) )
.tickSizeOuter(0), .tickSizeOuter(0),
) )
)
.attr("direction", "ltr"); .attr("direction", "ltr");
svg.select<SVGGElement>(".x-ticks").selectAll<SVGTextElement, GroupKind>("text") svg.select<SVGGElement>(".x-ticks").selectAll<SVGTextElement, GroupKind>("text")