Does excess baggage charge by volume or weight?

Most excess baggage travelling by air cargo is charged by weight, whereas sea cargo is charged by volume and not weight.