Resize the graph with browser window size

How can I make those graphs resizeable with browser window size? The size of each graph’s width and height are pre-calculated using %.

I feel like after the graph is created you can’t do css to change it. No matter what new height and width you pass in.