A meaningful whole
Pie converts each non-negative value into a share of the total. Zero values remain in the source but create no visible angle, and at least one value must be positive.
A precise comparison
Bar preserves absolute values on a zero-inclusive scale and supports negative values. Aligned lengths are usually clearer when categories are numerous or close together.
One dataset, two questions
A budget table can answer “what share goes to housing?” with Pie or “how much larger is housing than transport?” with Bar. Choose the question before the shape.