Skip to content

Pie chart: surplus slivers close smoothly instead of leaving a white gap - #630

Open
skaphan wants to merge 1 commit into
artoonie:mainfrom
skaphan:pie-surplus-sliver-fix
Open

Pie chart: surplus slivers close smoothly instead of leaving a white gap#630
skaphan wants to merge 1 commit into
artoonie:mainfrom
skaphan:pie-surplus-sliver-fix

Conversation

@skaphan

@skaphan skaphan commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

When an elected candidate's surplus transfers, the grayed-out sliver of their slice was removed at full size at the start of the consolidate phase, leaving a white gap that neighboring slices then closed over. This updates the pie bundle so the sliver shrinks closed with the same animation eliminated candidates get.

Source fix is in the pie component's updatePie: the closing transition's data now retains the transfer sub-slice as a zero-value entry, so the keyed data join tweens it shut instead of exit-removing it at full size.

Verified on the 2013 Minneapolis Park Board election (three surplus rounds): previously every sliver popped to a white gap; now each sweeps closed, hatched, through the normal transition.

🤖 Generated with Claude Code

When an elected candidate's surplus transfers, the hatched sliver was
deleted at full size at the start of the consolidate phase — a white
gap in the pie that neighboring slices then closed over. The closing
data now carries the transfer sub-slice as a zero-value entry, so the
same angular tween that closes eliminated candidates' slices closes
the sliver too.

Bundle built from rcv-pie-chart acb3dd7 (source fix in
PieChartGraphics.svelte updatePie).

Co-Authored-By: Claude Fable 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant