Fixing chart resize not working.