And how to build them with R, Python, D3.js or React anyway
If you ask the wrong question, you will get the wrong answer ... So you should always use pie charts if you ask for majority! It is not the chart which defines the use, It's what you want to show, why you use a diagram. Each diagram has it's own focus on how you look at data.
Pie charts are key, if you want to know which answer to a question is the majority (or 25%, 50%, 75%)!
The worst diagrams are stacked bar charts in sense of reception!