Skip to content

fix(themeRiver): preserve percentage boundary gaps. close #21858 - #21861

Open
umrndem wants to merge 1 commit into
apache:releasefrom
umrndem:fix-21858
Open

umrndem wants to merge 1 commit into
apache:releasefrom
umrndem:fix-21858

Conversation

@umrndem

@umrndem umrndem commented Nov 22, 2026

Copy link
Copy Markdown

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

Keep themeRiver percentage boundary gaps intact so resizing recalculates them for the current axis size.

Fixed issues

Fixes #21858.

Details

Before: What was the problem?

The layout converted the series' boundaryGap array to pixels in place. Later layouts reused those pixel values after the chart dimensions changed.

After: How does it behave after the fixing?

Copy the array before resolving percentages. A resized chart now has the same layout as a fresh chart at the final size, for both axis orientations.

Document Info

  • 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

Added test/ut/spec/series/themeRiver.test.ts. Both orientation cases fail on the release branch before the fix.

All 228 unit tests passed. The library build, type checks, source lint, and license-header check passed.

Merging options

  • Please squash the commits into a single one when merging.

@echarts-bot

echarts-bot Bot commented Nov 22, 2026

Copy link
Copy Markdown

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

Please DO NOT commit the files in dist, i18n, and ssr/client/dist folders in a non-release pull request. These folders are for release use only.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant