Blog Archive for November 18, 2010

Resizable SVG

November 18, 2010

I wanted to be able to have an SVG pie chart that resized to the available browser window. This can be done using the viewBox attribute on the svg tag.

The four parameters to the viewBox attribute set up a new co-ordinate system in the available width and height. Width …

Tags: svg resize