Hi there,
How is it possible to create a pie chart inside a donut chart like the attached one in Stata?
How is it possible to create a pie chart inside a donut chart like the attached one in Stata?
* Example generated by -dataex-. For more info, type help dataex clear input str4 which float(value axis) "A" 1 1 "B" 32 2 "C" 1 3 "D" 11 4 "E" 7 5 "F" 1 6 "G" 7 7 "H" 41 8 "I" 4 8 end forval i = 1/8 { label def axis `i' "`=which[`i']'", add } label val axis axis graph hbar (asis) value, over(which) over(axis) nofill asyvars stack legend(order(9) pos(5)) ysc(alt) blabel(total)
graph pie landbrug affald el_fjernvarme olie_gas_ve fremstillingserhverv serviceerhverv transport husholdninger, legend(off) plabel(_all name, gap(22) color(black)) plotregion(margin(15 15 15 15)) graph save "gr1.gph", replace graph pie hvid ccs, pie(1, color(white)) legend(off) plabel(2 "CCS", gap(-40)) plotregion(margin(-135 45 45 45)) graph save "gr2.gph", replace graph combine "gr1.gph" "gr2.gph"
Comment