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

   ## Brief Information
   
   This pull request is in the type of:
   
   - [x] bug fixing
   - [ ] new feature
   - [ ] others
   
   ### What does this PR do?
   
   Restores the original category order when the last bar series using 
`realtimeSort` on an axis disables it.
   
   ### Fixed issues
   
   Closes #21875.
   
   ## Details
   
   ### Before: What was the problem?
   
   Turning `realtimeSort` off left the category axis sorted because 
`categorySortInfo` remained stored in the axis model and was reapplied on 
subsequent updates. This also affected other series sharing that axis.
   
   ### After: How does it behave after the fixing?
   
   The bar processor tracks which category axes use `realtimeSort` and clears 
the persisted sort before layout when sorting is no longer enabled on those 
axes.
   
   Sorting is preserved while another bar series on the same axis still uses 
`realtimeSort`. Axis orders configured independently of `realtimeSort` are also 
preserved.
   
   ## 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
   
   Regression tests in `test/ut/spec/series/bar.test.ts` cover:
   
   - Both category-axis orientations with canvas and SVG renderers.
   - Repeatedly enabling and disabling sorting.
   - Resizing after restoring the original order.
   - Multiple bar series sharing the category axis.
   - Preserving independently configured axis orders.
   
   ### Merging options
   
   - [x] Please squash the commits into a single one when merging.
   
   ### Other information
   
   Validation:
   
   - All 200 unit tests pass.
   - TypeScript checks pass for the main project and BMap extension.
   - Targeted ESLint and `git diff --check` pass.
   - The regression tests fail with the fix disabled and pass with it enabled.
   
   
https://github.com/user-attachments/assets/dfdca09e-76d8-415a-948b-f2f0d4e0d88c
   
   


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