dvago commented on issue #10724: Responsive SVG rendered charts URL: https://github.com/apache/incubator-echarts/issues/10724#issuecomment-517197557 Thanks @Ovilia to getting back, as I previously said, in order to make a chart (any SVG) responsive is a good practice to remove the attributes `width` and `height` from the SVG tag itself and rely on the `viewBox` instead. The content of an SVG (all the inner points) remain attached to the viewBox so there are no issues on removing the constrains mentioned in my previous comments. Please have a look at this Jsfiddle URL: https://jsfiddle.net/2ebuxykz/1/, the example will clarify you what I'm asking for. Related to the example, resizing the output frame you will notice how the first SVG (generated via eCharts) doesn't change at all meanwhile the second SVG (generated and tweaked later on) is completely responsive (it resizes depending on the content where the charts applied on) Please do let me know if you have any concern.
---------------------------------------------------------------- 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]
