xxxxxxxxxx
$(document).ready(function () {//Changing design according to screen size
function checkWidth() {
if ($(window).width() >= 1200) {
$('.charts-container').removeClass('col-4').addClass('col-6');
$('.charts-item').removeClass('col-md-12').addClass('col-md-6');
} else {
$('.charts-container').removeClass('col-6').addClass('col-4');
$('.charts-item').removeClass('col-md-6').addClass('col-md-12');
}
}
// Execute on load
checkWidth();
// Bind event listener
$(window).resize(checkWidth);
});