Version
5.3.3
Link to Minimal Reproduction
https://codesandbox.io/s/disk-usage-forked-qc81o3?file=/index.js:879-895
Steps to Reproduce
- see the codesandbox index.js
- notice the label position is "insideBottomLeft"
- see it is using the rich.a for the first line of the label
- 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
2条答案
按热度按时间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. 🤓
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.