Skip to content

toolkit: add PieChart proportional-wedge disc#11

Merged
tannevaled merged 1 commit into
mainfrom
toolkit-piechart
Jul 10, 2026
Merged

toolkit: add PieChart proportional-wedge disc#11
tannevaled merged 1 commit into
mainfrom
toolkit-piechart

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

The part-of-whole complement to LineChart/BarChart: fills a disc with one wedge per value, starting at 12 o'clock and running clockwise, sized by each value's share of the total. Colours cycle through a built-in categorical palette (Tableau-10-derived, distinct on light and dark) unless Colors is set.

Negatives count as zero so a stray sign can't invert a wedge; a zero or empty total draws nothing. Filled per-pixel over putPixelno arc primitive needed in painter, so the same disc renders as pixels (WUI/GUI) or promoted cells (TUI).

100% coverage; go vet clean; builds on all 6 arches + js/wasm.

🤖 Generated with Claude Code

The part-of-whole complement to LineChart/BarChart: fills a disc with one
wedge per value, starting at 12 o'clock and running clockwise, sized by each
value's share of the total. Colours cycle through a built-in categorical
palette (Tableau-10-derived) unless Colors is set. Negatives count as zero;
a zero/empty total draws nothing. Filled per-pixel over putPixel — no arc
primitive needed, so it renders on both back-ends. 100% coverage.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit b70c617 into main Jul 10, 2026
1 check passed
@tannevaled
tannevaled deleted the toolkit-piechart branch July 10, 2026 12:25
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