Skip to content

fixRegression: Fix the implementation of visualMap labels overlap. Fix #21586. #21637

Open
100pah wants to merge 1 commit into
masterfrom
fix/simplify-21586
Open

fixRegression: Fix the implementation of visualMap labels overlap. Fix #21586. #21637
100pah wants to merge 1 commit into
masterfrom
fix/simplify-21586

Conversation

@100pah
Copy link
Copy Markdown
Member

@100pah 100pah commented May 30, 2026

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

Fix the implementation of #21586 .

  • Remove some verbose and unnecessary code.

  • Remove the breaking change to visualMap[type='continuous'].formatter: function () {} - not necessary, and that breaking change can cause the existing lables display incorrectly when labels touch.

    The effect of fix(visualMap): prevent tooltip label overlap #21586 :
    Image
    Expected:
    Image

  • Switch to a more comprehensive implementation - adjust the positions of the two labels to avoid overlap. The previous approach (merging two labels) may occupy extra horizontal space and may unexpectedly cause overlap with other content.

    The effect of fix(visualMap): prevent tooltip label overlap #21586:
    11aa2

    The effect of this PR:
    11aa

  • Add visual test for visualMap[type='continuous']

…ode. (2). Remove the breaking change to `visualMap[type='continuous'].formatter: function () {}` - not necessary, and that breaking change can cause the existing lables display incorrectly when labels touch. (3). Switch to a more comprehensive implementation - adjust the positions of the two labels to avoid overlap. The previous approach (merging two labels) may occupy extra horizontal space and may unexpectedly cause overlap with other content. (4). Add visual test for `visualMap[type='continuous']`
@echarts-bot
Copy link
Copy Markdown

echarts-bot Bot commented May 30, 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.

The pull request is marked to be PR: author is committer because you are a committer of this project.

To reviewers: If this PR is going to be described in the changelog in the future release, please make sure this PR has one of the following labels: PR: doc ready, PR: awaiting doc, PR: doc unchanged

This message is shown because the PR description doesn't contain the document related template.

@100pah 100pah requested a review from Justin-ZS May 30, 2026 08:47
@plainheart plainheart added this to the 6.2.0 milestone May 30, 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.

2 participants