Skip to content

feat(chart): add 100% stacked bar template - #265

Open
rnb-tron wants to merge 2 commits into
antvis:mainfrom
rnb-tron:feature/chart-bar-stacked-100
Open

rnb-tron wants to merge 2 commits into
antvis:mainfrom
rnb-tron:feature/chart-bar-stacked-100

Conversation

@rnb-tron

@rnb-tron rnb-tron commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add the chart-bar-stacked-100-plain-text template for comparing category proportions across rows.
  • Accept raw nonnegative values and calculate percentages independently for each row. categories defines the legend, stacking order, and colors using the existing antv palette.
  • Add a Gallery example, syntax guidance, documentation, and tests. Zero-total rows display “No Data”.

Validation

  • npm run ci — passed (762 tests)
  • npm run build:site — passed
  • Prettier and git diff --check — passed
  • Manually verified rendering and PNG/SVG export in a browser
@codecov-commenter

codecov-commenter commented Oct 13, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.04153% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.03%. Comparing base (2ea1894) to head (f40e26a).

Files with missing lines Patch % Lines
src/designs/structures/chart-bar-stacked-100.tsx 98.99% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #265      +/-   ##
==========================================
+ Coverage   51.50%   52.03%   +0.53%     
==========================================
  Files         343      345       +2     
  Lines       28711    29024     +313     
  Branches     2696     2743      +47     
==========================================
+ Hits        14788    15104     +316     
+ Misses      13912    13909       -3     
  Partials       11       11              
Flag Coverage Δ
infographic 52.03% <99.04%> (+0.53%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/designs/structures/index.ts 100.00% <100.00%> (ø)
src/syntax/schema.ts 100.00% <100.00%> (ø)
src/templates/built-in.ts 100.00% <100.00%> (ø)
src/templates/chart-bar-stacked-100.ts 100.00% <100.00%> (ø)
src/types/data.ts 100.00% <ø> (ø)
src/designs/structures/chart-bar-stacked-100.tsx 98.99% <98.99%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants