Closed jnishiyama closed 9 years ago
In fact, after second inspection, simply by changing line 80 in nvd3_tags.py:
from def include_container(include_container, height=400, width=600):
to def include_container(include_container, height=400, width=None):
We can omit width in the template tag, and the resize kwarg works.
you can omit both height and or width, the following work {% include_container chartcontainer %}
I think that it should be possible to omit at least width from the template tag, without it defaulting to a value. As far as I know, if height and width are set on the svg element, the nv resize utility function doesn't do anything.