Pie chart with different slice heights or lengths?

Anyone knows how to make a pie chart with slice heights or lengths that’s proportional to another variable?

E.g.:
Pie chart with different slice lengths
and
Pie chart with different slice height

Is it possible to draw these in excel? Or any other relatively simple program?

I mean, do I need to use something like gnuplot for simple charts like these?

Thank you again in advance for your help.