The problem may be related to the timing. Chart is rendered before the tab is displayed, therefore, the dimensions are not calculated properly. There will be some event when the tab is displayed, and after this event is triggered, the chart should be initialized.
You can refer this example with bootstrap tabs.
If the problem still persists, please create a jsfiddle. So that we can look into it.