DEV Community

Discussion on: A new technique for making responsive, JavaScript-free charts

Collapse
 
thedancingcode profile image
Thomas Vantuycom

There is in fact a way to solve the text scaling issue: nest your svg with the polyline inside another svg that contains the text elements and use percentages to position those. It's important that the top level svg doesn't have a viewBox in that case.

An example: