Bootstrap Tabs with Google Charts - how to make it work?

Today, I've encountered an interesting problem. It seems that when an object is hidden, it breaks the properties of width and height for Google Charts. Using Bootstrap 3.3, I had a set of tabs. Each tab contained a graph of some sort. In the initial tab, the chart was being displayed correctly. However, the charts in the remaining tabs (those that were initially hidden) were 'squeezed' into much smaller size than desired.

There was no easy solution to this problem (i.e. styles didn't work). The best thing that I was able to come up with was to redraw the graph when the tab was activated:

The functions contained the standard precedures for drawing the graphs: