I think that is a valid question. Exceptions.
Basically, it’s all about the objective of the visualisation. If you’re representing parts of a whole, it makes sense to use a pie chart. However, if the variables are independent of each other, bar chart is good enough but pie chart can be be very inappropriate or at least misleading.
This link will tell you more
--