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

bnl4lu3b  于 5个月前  发布在  Echarts
关注(0)|答案(2)|浏览(49)

Version

5.2.2

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

xytpbqjk

xytpbqjk1#

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

llew8vvj

llew8vvj2#

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

相关问题