Rechart Responsive container does not render

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%;
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)