echarts [Bug] insideBottomLeft label position not work with rich fontSize

qco9c6ql  于 3个月前  发布在  Echarts
关注(0)|答案(2)|浏览(66)

Version

5.3.3

https://codesandbox.io/s/disk-usage-forked-qc81o3?file=/index.js:879-895

Steps to Reproduce

  1. see the codesandbox index.js
  2. notice the label position is "insideBottomLeft"
  3. see it is using the rich.a for the first line of the label
  4. notice rich.a has the fontSize of 18

Current Behavior

Label is displayed in top left

Expected Behavior

I asked label to please display in bottom left and she went to the top left instead

Environment

independent of environment: see codesandbox

Any additional comments?

try to delete the rich and notice the label went to the right spot

kcrjzv8t

kcrjzv8t1#

This issue is labeled with difficulty: easy .
@FirstVertex Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.

Please have a look at How to debug ECharts if you'd like to give a try. 🤓

xmq68pz9

xmq68pz92#

https://github.com/ZeekoZhu/echarts/blob/81321a63a91d98378114153d446a2713e9c10844/src/chart/treemap/TreemapView.ts#L996-L1009

After debugging, I found out that the above code may be causing this issue. I am still investigating if I can safely remove these lines.

相关问题