Since ResponsiveContainer relies on the parent’s dimensions you need to make sure the parent has a proper width and height.
The reason why a setting on <Barchart /> works is because it sets its own width and height.
Check out this fiddle RESPONSIVECONTAINER
I added CSS to the parent classes you have
.question {
width: 500px;
height: 500px;
}
.question-container {
width: 100%;
height: 100%;
}