A similar problem here: GWT Google Charts grow but don't shrink
I have a d3 chart that is set to be responsive. If it's inside a flexbox layout, it will grow, but will not shrink. See the code in this codepen:
https://codepen.io/bentedder/pen/NyeQXd
body {
display: flex;
}
.chart-wrap {
flex: 1;
flex-basis: 100%;
}
.chart {
background: #efefef;
}
<div class="chart-wrap">
<div class="chart"></div>
</div>