Skip to content

fix(pie): fix labelLine may be not removed and cause error when single label position is not in outside - #20906

Merged
plainheart merged 1 commit into
masterfrom
fix/pie/labelLine-remove-error
Apr 9, 2025
Merged

fix(pie): fix labelLine may be not removed and cause error when single label position is not in outside#20906
plainheart merged 1 commit into
masterfrom
fix/pie/labelLine-remove-error

Conversation

@plainheart

Copy link
Copy Markdown
Member

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

This fixes an error introduced in #14017, which gets label position from series model rather than data item model.

Fixed issues

Comparison

image

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

ZRender Changes

  • This PR depends on ZRender changes (ecomfe/zrender#xxx).

Related test cases or examples to use the new APIs

Please refer to the 9th test case in test/pie-label.html

Others

Merging options

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

Other information

…e label position is not in outside.

- This fixes an error introduced in #14017, which gets label position from series model rather than data item model.
- Resolves #20904
- Resolves #20905
@github-actions

github-actions Bot commented Apr 9, 2025

Copy link
Copy Markdown
Contributor

The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-20906@b9e5bb0

@susiwen8 susiwen8 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, Thanks!

@plainheart
plainheart merged commit b407027 into master Apr 9, 2025
@echarts-bot

echarts-bot Bot commented Apr 9, 2025

Copy link
Copy Markdown

Congratulations! Your PR has been merged. Thanks for your contribution! 👍

@plainheart
plainheart deleted the fix/pie/labelLine-remove-error branch April 9, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants