score:1

Accepted answer

as suggested here, you should add flex-basis: 0 and overflow:hidden to the chart containers. note that if you have several levels of flexboxes one into each other, you should add this at every level.

#chart1 {
  background: lightcyan;
  flex-grow: 1;
  flex-basis: 0;
  overflow: hidden;
}

#chart2 {
  background: lightyellow;
  flex-grow: 1;
  flex-basis: 0;
  overflow: hidden;
}

Related Query

More Query from same tag