dvago commented on issue #10724: Responsive SVG rendered charts
URL: 
https://github.com/apache/incubator-echarts/issues/10724#issuecomment-505337975
 
 
   Good morning/evening @Ovilia. Having a javascript function maybe attached to 
an event listener to do a resize of an SVG (which is a vector graphic) is quite 
too much. Have you tried to replace the `width` and `height` attributes with a 
`viewBox`? Please do try and come back to me.
   
   A simple test could be: on Finished hook `setAttribute(0, 0, width, height)` 
and `removeAttribute('width')` and `('height')`

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to