title: nvd3 resize lineplusbarchart
body: <p>I am using the <a href="https://github.com/novus/nvd3/blob/master/examples/linePlusBarChart.html" rel="nofollow">lineplusbarchart</a> from the nvd3 framework and I see that the chart is redrawn when the window is resized only on the horizontal axis. Vertically the height remains static, even when stretched or compressed, as you can see <a href="http://nvd3.org/examples/linePlusBar.html" rel="nofollow">here</a>. This leads me to believe that the only way to change the height is to initialize it each time like so: </p>
  
  <pre><code>&lt;nvd3-line-plus-bar-chart data="data"
        showXAxis="true" showYAxis="true"
        margin="{left:75,top:20,bottom:50,right:75}"                                                                                  
        height="300"                            
  &lt;/nvd3-line-plus-bar-chart&gt;
  </code></pre>
  
  <p>My application uses the <a href="http://angular-ui.github.io/ui-layout/" rel="nofollow">ui-layout splitter</a> which allows me to expand or compress the chart as I see fit. However, on compressing vertically there is a scroll bar that gets inserted, which is not the behavior I'm looking for. There is no event in the documentation that fires on resize, so I can't pass this new height parameter to nvd3 for it to resize and redraw itself with the new dimensions. I also see a <code>chart.update</code> method in the nvd3 docs, but I'm not sure how it could work in this case.</p>
  
  <p>How do I solve this problem? If I need to explain myself better, let me know.</p>