Skip to content

toolkit: add BarChart vertical bar plot#10

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

toolkit: add BarChart vertical bar plot#10
tannevaled merged 1 commit into
mainfrom
toolkit-barchart

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

The categorical companion to LineChart: plots non-negative Values as vertical bars over the same left+bottom axis frame. Bars share the plot width evenly with a 1-unit gutter and scale to the tallest value (or an explicit Max).

Zero-height bars are skipped; tiny values floor to 1px so they stay visible; values above Max clamp to full height. An empty series draws just the axes. Display-only.

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

🤖 Generated with Claude Code

The categorical companion to LineChart: plots non-negative Values as
vertical bars over the same axis frame, bars sharing the plot width evenly
with a 1-unit gutter and scaling to the tallest value (or an explicit Max).
Zero-height bars are skipped; tiny values floor to 1px; over-Max values
clamp to full height. An empty series draws just the axes. 100% coverage.

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