Skip to content

Conversation

@linlang171
Copy link

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

When using the moveOverLap attribute for label overlap, the position should remain within the coordinate system.

Fixed issues

#21461

Details

Before: What was the problem?

1、When using the moveOverLap attribute for label overlap,in some cases, offsets are applied unnecessarily.
image

2、When using the moveOverLap attribute for label overlap,the position don't remain within the coordinate system
image

After: How does it behave after the fixing?

Offset should only occur when necessary and should not be moved out of the coordinate system it is in

Document Info

One of the following should be checked.

  • 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

N.A.

Merging options

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

Other information

@echarts-bot
Copy link

echarts-bot bot commented Feb 2, 2026

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.

@linlang171 linlang171 marked this pull request as ready for review February 2, 2026 14:37
@linlang171 linlang171 marked this pull request as draft February 2, 2026 14:37
@linlang171 linlang171 changed the title fix lock label moveoverlap in grid fix: lock label moveoverlap in grid Feb 2, 2026
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