Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data label is not aligned properly on both with or without hover the bar #20083

Open
Muthuponmari opened this issue Jun 27, 2024 · 2 comments
Open
Labels
en This issue is in English not-a-bug topic: label

Comments

@Muthuponmari
Copy link

Version

5.2.2

Link to Minimal Reproduction

https://codesandbox.io/s/w8qgyq

Steps to Reproduce

  1. Create a simple bar chart
  2. Give label: {show : true, position top} in series
  3. On emphasis change the borderwidth and border color
  4. on hover the bar the data label is moving up and down

Current Behavior

the data label is moving up and down on hover

Expected Behavior

it should be constantly fixed

Environment

- OS:macos
- Browser:chrome 96.0
- Framework:Visual studio code

Any additional comments?

No response

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Jun 27, 2024
@Ovilia
Copy link
Contributor

Ovilia commented Jun 27, 2024

Border width is considered when calculating the bounding box, so I think this is as expected.

@Ovilia Ovilia added not-a-bug waiting-for: author topic: label and removed bug pending We are not sure about whether this is a bug/new feature. labels Jun 27, 2024
@Muthuponmari
Copy link
Author

but it is not look good, ux is not correct, any solution to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English not-a-bug topic: label
Projects
None yet
Development

No branches or pull requests

2 participants