There are standard examples of nvd3 stacked bar with the addition of controls.
chart.showControls(true);
When the screen size is changed, the controls intersect with the legend:
Is it possible to arrange control in two lines
I tried to play with
d3.select('.nv-controlsWrap').attr("transform","translate(...,...) rotate(...)");
but they only move the legend as a whole and not turn it into two lines.
Update
The solution proposed by @Mark on EN_SO :
d3.select('.nv-controlsWrap .nv-series:nth-child(2)') .attr('transform', 'translate(0, 25)');
new fiddle
But when using the legend (click on Stream0 for example), it returns to its original position.
Is it possible, like using a legend, to preserve the position of controls?