Skip to content

feat: Support negative / bi-directional Bar Charts - #135

Merged
jentfoo merged 1 commit into
mainfrom
feat/bi-directional-bar-charts
Aug 15, 2026
Merged

jentfoo merged 1 commit into
mainfrom
feat/bi-directional-bar-charts

Conversation

@jentfoo

@jentfoo jentfoo commented Jul 26, 2026

Copy link
Copy Markdown
Member

Bars now extend below zero for negative data. Axis ranges spanning zero are aligned so zero lands on a label grid tick. Mark point pins rotate to face away from the bar tip, and series labels flip position for negative bars.

Basic Stacked Series Examples:
TestBarChart 30-stack_series_negative-actual-3614918732
TestBarChartHorizontal 27-stack_series_negative-actual-2702603684

Fixes #134

@jentfoo jentfoo self-assigned this Jul 26, 2026
@jentfoo jentfoo added the feat Feature or improvement label Aug 4, 2026
@jentfoo
jentfoo force-pushed the feat/bi-directional-bar-charts branch from e768e40 to 52cb635 Compare August 12, 2026 03:26
Bars on bar charts now extend below zero for negative data. Axis ranges spanning zero are aligned so zero lands on a label grid tick. Mark point pins rotate to face away from the bar tip, and series labels flip position for negative bars. Clearance reserves pixel headroom on both sides of diverging data to avoid clipping.
@jentfoo
jentfoo force-pushed the feat/bi-directional-bar-charts branch from 52cb635 to 84fcce5 Compare August 15, 2026 19:39
@jentfoo
jentfoo merged commit 84fcce5 into main Aug 15, 2026
5 checks passed
@jentfoo
jentfoo deleted the feat/bi-directional-bar-charts branch August 15, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat Feature or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support bi-directional bar charts

1 participant