benjarobin commented on issue #21647: URL: https://github.com/apache/echarts/issues/21647#issuecomment-4688645857
Both lines you provided are not the same: the `transform="translate` is not the same. I am talking about the distance between the 2 legend lines, as indicated by the red line that I added to the captured image to be clearer (both graphs are rendered using SVG, but the result is the same with canvas). ## Firefox: <img width="966" height="203" alt="Image" src="https://github.com/user-attachments/assets/fb121ba1-e91e-4c52-be66-7527d653c9f9" /> ``` <path d="M30 -2l20.45 0l0 10l-20.45 0Z" transform="translate(248.075 212.75)" fill="none"></path> <text dominant-baseline="central" text-anchor="start" style="font-size: 8px; font-family: sans-serif;" x="30" y="3" transform="translate(248.075 212.75)" fill="#54555a">Email</text> ... <path d="M30 -2l22.2 0l0 10l-22.2 0Z" transform="translate(248.075 240.25)" fill="none"></path> <text dominant-baseline="central" text-anchor="start" style="font-size: 8px; font-family: sans-serif;" x="30" y="3" transform="translate(248.075 240.25)" fill="#54555a">Direct</text><path d="M-1 -6.75l53.2 0l0 19.5l-53.2 0Z" transform="translate(248.075 240.25)" fill="none"> ``` The distance in Firefox is 240.25 - 212.75 = 27.5 ## Chromium: <img width="1224" height="221" alt="Image" src="https://github.com/user-attachments/assets/66a5b87c-5dbe-4c58-8bff-6f61b3db12e9" /> ``` <path d="M30 -2l20.0039 0l0 10l-20.0039 0Z" transform="translate(326.3809 213)" fill="none"></path> <text dominant-baseline="central" text-anchor="start" x="30" y="3" transform="translate(326.3809 213)" fill="#54555a" style="font-size: 8px; font-family: sans-serif;">Email</text> ... <path d="M30 -2l20.8906 0l0 10l-20.8906 0Z" transform="translate(326.3809 231)" fill="none"></path> <text dominant-baseline="central" text-anchor="start" x="30" y="3" transform="translate(326.3809 231)" fill="#54555a" style="font-size: 8px; font-family: sans-serif;">Direct</text> ``` The distance in Chromium is 231 - 213 = 18 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
