feat(bar): add --horizontal flag for 2D grouped bar charts#190
Merged
fahimfaisaal merged 14 commits intoJul 6, 2026
Merged
Conversation
Move grouped horizontal legends to bottom center without transforming data or axis labels. Fix Y-axis dataZoom slider placement, invert the category axis for correct bar order, and tighten grid spacing.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
fahimfaisaal
deleted the
fahimfaisaal/feat-horizontal-2d-bar-charts-grouped-mode
branch
July 6, 2026 04:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
Resolve #189
Summary
--horizontal,--chart bar:horizontal, the UI settings panel, and?bar.h=truedeep links.--swap).Changes
--horizontalCLI flag andhorizontalconfig field in Go (HorizontalFlag,Bar.Horizontal).--chart bar:horizontalsupport via the chart flag registry.createHorizontalAxisConfig,createHorizontalDataZoomConfig, and right-positioned bar labels for horizontal orientation.useBarChartOptionsfor horizontal grouped mode: legend at bottom center, category Y-axis (inverse: true), value X-axis, Y-axis dataZoom slider.bar.hURL deep-link inuseUrlRouter.useBar3DChartOptions) unchanged.charts/bar.mdx,commands/charts.mdx,commands/root.mdx).pkg/template/vizb-ui.gen.go.Test Result
Testing Steps
go test ./...--horizontalCLI output:go run . bar examples/csv/sales.csv -g region,category -p x,y --horizontal --show-labels -o out.htmlgrep -o '"horizontal":true' out.html--chartoverride:go run . examples/csv/sales.csv -g region,category -p x,y -c bar --chart bar:horizontal -o dashboard.htmlExpected:
--horizontalappears underbar --helponly.horizontal-bar-preview.webm