cmaurer/angularjs-nvd3-directives — pull request #240 by WBad (2014-06-25 15:48:35+00:00)
Title: SVG Can't Auto Resize

By replacing the width & height attributes of the SVG element with the viewBox attribute, the content of the SVG element is automatically scaled to the appropriate size of the container making the With & Height attributes act like an internal scale/ratio used by NVD3 to calculate what size to make each element and where to place it within the SVG canvas.

This mean that charts will auto size to the 100% width 100% height specified in the nv.d3.css on line 146.

The user can use the width/height angular attributes to set a scale for the SVG elements but get propper dynamic sizing.
If static sizing is desired use css to override the 100% width 100% height.