echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] treemap 设置宽高 100% 时,右侧和底侧部分区域看不见

Open innerWang opened this issue 3 months ago • 1 comments

Version

6.0.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?code=zVZNa9tAEL3nVwyGkksoTvpBK-ghVpOWgAlElBxKD2Np7F282lVXK6eh-L93bX3LkiW5LQQMlsfzRjNv3ltJRYYrCZ_g9xmA_cSkOcXO_ieAeY7IgYnRRCFGk4t98IkHhjlwfjmdvjpPQ4z4ipl6LP6ZoKYHtPUdmL7-8C4Na4WhA0sUMaUBqQJyBffXtehCEwa-TsKF7QVipp6yv2GbJgRo0IHvaZ-2Coa7Tm-VCrI2AXzGRaBJVtIANigSm_kmTyqhOuGmwHagC_xlmVhUuI4iQZMivr3IWKwBr1qA9xrliir37rx7AfFow4UgaIGWPVaCjWaKOjNhGRte5Uc5XX5Zq5xhPh6wOyccTu77Fo5mhMtxDHEtFJenU_PAF6eDXZb469PhHkM5BF7Zx2C1ucyajerE9JH5yOUq_pt-8i1aW8dVIbSUKZWVXlQqNfWRVf2suVyX7Y3zvR2tqvwOJrLkb951W_NXPWPfJFpF4wz-hXSI8vkfeDKXlFoa2DM12IcVsooydwn3x02yPxbhEDfKEOkJdaxKuYMOToaq6RZjZp-Jx-WUe0kow6w3BgvIY1ybupMODdCqoTu0rm2H1vbUt455w_qj1vCorCj_17mksDHeSxulW0rFCGGUGNI9Z1ElW0mStamzFt4OFdTMvmQtbJVxmjqyhptfdgCJYtQmvqIOdofLptFHrztbpT5XkhtVYbHnOdHyBnJ4zt8bRnrEQT87xaQuxpaBniRPJTIA11I2eMJMcLuv7dn2Dw&_source=echarts-doc-preview&renderer=svg&enc=deflate

Steps to Reproduce

  1. 新建一个矩形树图
  2. 设置width 和 height 为 100%, 目的是为了充满画布

Current Behavior

左侧和顶侧都有空白,右侧和底部部分图形超出

Image Image

Expected Behavior

设置宽高为 100% 时能够充满画布,且所有图形显示完整

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

innerWang avatar Nov 20 '25 09:11 innerWang

@innerWang It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

[Bug] When the treemap is set to 100% width and height, the right and bottom parts of the area are not visible

echarts-bot[bot] avatar Nov 20 '25 09:11 echarts-bot[bot]