You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
Version
5.5.0
Link to Minimal Reproduction
none
Steps to Reproduce
1.Normal in canvas render.
2.The image is not full in svg render.
3.Found that setting preserveAspectRatio="none" solves the problem.
Current Behavior
none
Expected Behavior
The image is full in svg render.
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: