@mridula,
As addressed in the previous reply, setting the height of the chart-container based on the height of the table seems to be working fine in this case. In the sample that you have shared, setting the height of 2nd chart to 279px seems to be working fine. Please find the code-snippet below.
#chartContainer-1 {
height: 279px !important;
}

—
Thangaraj Raman
Team CanvasJS