ahuja2666 opened a new pull request, #21852:
URL: https://github.com/apache/echarts/pull/21852

   ## Brief Information
   
   This pull request is in the type of:
   
   - [ ] bug fixing
   - [x] new feature
   - [ ] others
   
   ### What does this PR do?
   
   Adds a pixel-based `stackGap` option for separating adjacent segments in 
stacked Cartesian bar series.
   
   ### Fixed issues
   
   - Closes #21848: Bar series need a gap between stacked segments without 
changing the outside edges.
   
   ## Details
   
   ### Before: What was the problem?
   
   Stacked bar segments touch. Using borders as dividers can hide thin 
segments, depend on the chart background, and change the outside edges of the 
stack.
   
   ### After: How does it behave after the fixing?
   
   `stackGap` defaults to `0`. For stacked Cartesian bars, each segment is 
inset by half the configured pixel gap at shared same-sign edges. The layout 
keeps each segment at least 1px in the value-axis direction (or `barMinHeight` 
when larger), preserves the stack's outside edges, and leaves axis data and 
values unchanged. Use the same `stackGap` on every series in a stack for a 
uniform gap.
   
   ## Document Info
   
   - [ ] This PR doesn't relate to document changes
   - [x] The document should be updated later
   - [ ] The document changes have been made in apache/echarts-doc#xxx
   
   ## Misc
   
   ### Security Checking
   
   - [ ] This PR uses security-sensitive Web APIs.
   
   ### ZRender Changes
   
   - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
   
   ### Related test cases or examples to use the new APIs
   
   `test/ut/spec/series/bar.test.ts` covers vertical and horizontal layout, 
positive and negative stacks, same-sign boundaries, zero and missing items, 
thin segments, large mode, and time-axis index stacking. 
`test/bar-stack-gap.html` provides a visual comparison with the default layout.
   
   ### Merging options
   
   - [ ] Please squash the commits into a single one when merging.
   
   ### Other information
   
   Verification passed: all 26 unit test suites (201 tests), TypeScript checks, 
ESLint, header checks, `npm run build:lib`, and `npm run build`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to