use this jquery tab select function, it will solve your problem.
jQuery(document).on( 'shown.bs.tab', 'a[data-toggle="tab"]', function (e) {
jQuery( "#graph-container-gray, #graph-container-red" ).each(function() {
var chart = jQuery(this).highcharts();
chart.reflow()
});
})