feat(bar/line): add --stack for 2d charts#194
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
hfl0506
marked this pull request as ready for review
July 6, 2026 06:10
Collaborator
Author
|
Hi @fahimfaisaal Can I get you review this PR when you have a moment ? thank you |
Member
|
@hfl0506 i will, currently AFK |
Member
|
@hfl0506 how show labels works with stack bar/line charts? |
Collaborator
Author
|
Hi @fahimfaisaal here's the show label examples for both case of bar/line below. Thanks |
fahimfaisaal
approved these changes
Jul 8, 2026
Member
|
Hi @hfl0506 can we add these stack SS at chart docs? Also, can we disable the scale component in the UI when stack is enabled? |
Collaborator
Author
|
Hi @fahimfaisaal I pushed change according to what you mention like below. Please take a look when you have a moment. Thank you Case 1./bin/vizb bar examples/csv/sales.csv -g region,category -p x,y
--stack -o /tmp/vizb-stack.html
Case 2./bin/vizb line examples/csv/sales.csv -g region,category -p
x,y --stack -o /tmp/vizb-stack-line.html
|
fahimfaisaal
approved these changes
Jul 9, 2026
Member
|
@hfl0506 Nice, Well Done |
15 tasks
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 Issues
Summary
Changes
Added StackFlag in Go chart flags.
Added stack JSON config to BarConfig and LineConfig.
Registered --stack on bar and line commands.
Added rule checks:
Added stack?: boolean to UI chart config types.
Threaded stack through active chart shape, chart options, and ChartCard.
Updated bar renderer to emit stack: 'total'.
Updated line renderer to emit stack: 'total' and areaStyle: {}.
Added StackControl.vue and Settings panel toggle.
Updated settings registry and tests for stack visibility.
Updated docs with stacked bar and stacked area examples.
Regenerated pkg/template/vizb-ui.gen.go.
Resolved merge conflicts with upstream horizontal bar and smooth line
features preserved.
Test Result
Ran validations below
Case 1 (Bar)
./bin/vizb bar examples/csv/sales.csv \ -g region,category \ -p x,y \ --stack \ -o /tmp/vizb-stacked-bar.htmlCase 2 (Line)
./bin/vizb line examples/csv/sales.csv \ -g region,category \ -p x,y \ --stack \ -o /tmp/vizb-stacked-line.htmlCase 3 (log scale + stack, should warning and ignore stack)