Fix overflowing charts in firefox