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

The picture size of series.tree.symbol is wrong in svg render,but normal in canvas render.(svg渲染模式下树图节点图片尺寸被压缩) #19865

Open
hdy1023 opened this issue Apr 25, 2024 · 2 comments
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.

Comments

@hdy1023
Copy link

hdy1023 commented Apr 25, 2024

Version

5.5.0

Link to Minimal Reproduction

none

Steps to Reproduce

1.Normal in canvas render.
1
2.The image is not full in svg render.
2
3.Found that setting preserveAspectRatio="none" solves the problem.
4

Current Behavior

none

Expected Behavior

The image is full in svg render.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@hdy1023 hdy1023 added the bug label Apr 25, 2024
@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 Apr 25, 2024
@helgasoft
Copy link

3.Found that setting preserveAspectRatio="none" solves the problem.

This is a property of HTML image component, I doubt it could be set in ECharts for a fix.

Demo shows the bug you found and two other oddities. Like a logo image displaying fine in SVG, but deformed in Canvas. Or another image ('rect_OK') that displays fine in both SVG and Canvas. Switch through button Render.

@hdy1023
Copy link
Author

hdy1023 commented Apr 28, 2024

3.Found that setting preserveAspectRatio="none" solves the problem.

This is a property of HTML image component, I doubt it could be set in ECharts for a fix.

Demo shows the bug you found and two other oddities. Like a logo image displaying fine in SVG, but deformed in Canvas. Or another image ('rect_OK') that displays fine in both SVG and Canvas. Switch through button Render.

1.Setting ‘preserveAspectRatio’ is not found in the ECharts documentation.
2.I think the render results should be the same regardless of which rendering mode is adopted under the same options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

2 participants