Responsive pie chart using NVD3
问题 I'm working on a simple example of a pie chart using NVD3. It renders correctly but it is not responsive. I tried to follow this answer to make it responsive, but didn't quite get to it. I made a fiddle. Indeed, it is responsive, but I'm not able to fit the chart in the container. My js code: nv.addGraph(function() { var chart = nv.models.pieChart() .x(function(d) { return d.label }) .y(function(d) { return d.value }) .showLabels(true); var $container = $('#chart'), width = $container.width()