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

   ## Brief Information
   
   This pull request is in the type of:
   
   - [x] bug fixing
   - [ ] new feature
   - [ ] others
   
   ### What does this PR do?
   
   Keeps Cartesian stacked bars connected during entrance animations and 
interrupted legend transitions.
   
   **[Interactive playground 
→](https://echarts-bar-chart-improvement.void.app/)** Compare upstream, #20862, 
and this fix side by side. Toggle B, scrub frames, and inspect measured gaps 
across 16 cases.
   
   ### Fixed issues
   
   Fixes #19095. Supersedes #20862 by @Enigmatrix.
   
   ## Details
   
   ### Before: What was the problem?
   
   Segments grow at their final positions, leaving gaps during entrance. Hiding 
a middle series removes it before its neighbors finish moving; restoring it 
mid-transition can cause a jump.
   
   ### After: How does it behave after the fixing?
   
   Segments with matching entrance timing grow from a shared baseline. Hidden 
bars shrink with their neighbors; interrupted transitions resume from the 
current shape.
   
   - Share baseline and predecessor rules with layout and stack calculation.
   - Handle reordered categories, descending stacks, removed predecessors, and 
recreated bars.
   - Preserve update duration, easing, and delay without extra timing-callback 
calls.
   
   Independent animation timings can still produce gaps. `barMinHeight` layout 
is unchanged. Both limitations are demonstrated in the playground.
   
   ## Document Info
   
   - [x] This PR doesn't relate to document changes
   - [ ] 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/bar-cartesian-stack-anim.html`
   - `test/ut/spec/series/barAnimation.test.ts`
   
   Validation: 281 unit tests passed, including 87 bar animation tests; type 
checks and ESLint passed. Verified 32 playground combinations across Canvas and 
SVG.
   
   ### Merging options
   
   - [x] Please squash the commits into a single one when merging.
   
   ### Other information
   
   <details>
   <summary>AI disclosure</summary>
   
   Codex implemented and tested this change. I provided requirements and 
reviewed the playground; Claude supplied additional review feedback.
   
   </details>
   


-- 
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