Laurent,
Please take a look at this JSFiddle for a sample implementation of your use case. The chart is re-rendered every time a tab is clicked, such that the chart dimensions are adjusted accordingly.
If your issue still persists, can you please share a JSFiddle reproducing your issue, so that we can understand the scenario better, and help you out?
—
Ananya Deka
Team CanvasJS