The article discusses issues faced when dynamically generating SVG graphs in PHP, specifically the challenge of making them responsive. The user attempts to utilize a viewBox for scalability but encounters problems where the text and circles do not scale appropriately when resizing the browser. Despite using CSS media queries to adjust text size, the problem persists. This raises questions about whether the issue lies with how SVGs are generated via PHP or the overall scaling logic applied to the SVG elements.
The main issue is that SVG elements are not scaling responsively as intended, especially the text and circles, when using 100% width and height.
Collection
[
|
...
]