• 91 9823089875

Morris Chart Display Charts In Tab

BootStrap Tabs hide Divs.So load chart on tab show

$('ul.nav a').on('shown.bs.tab', function(e){
if ($(e.target).attr('href') == '#tab-name' && $('#chart-div').html().length == 0)
{
<<---Draw chart here --->>
}
});

Also set div to width:100% and height:100%

 

 


Share