Dear Stata uses,
I seldom use pie plot, people often point out its flaws. But I have to use it for a report, layman seems to like pie chart (maybe human do like circle). If you use the following codes to graph a pie plot, you will find that in some slices there are overlap of plabels. In this data example, slices represent manager, profession, technician and selfemp categories are too small to label. I wonder is there some way to put the plabels outside the slice or apart from each other, and use some line connectors to connecte the corresponding slices. Thank you.
I seldom use pie plot, people often point out its flaws. But I have to use it for a report, layman seems to like pie chart (maybe human do like circle). If you use the following codes to graph a pie plot, you will find that in some slices there are overlap of plabels. In this data example, slices represent manager, profession, technician and selfemp categories are too small to label. I wonder is there some way to put the plabels outside the slice or apart from each other, and use some line connectors to connecte the corresponding slices. Thank you.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(ratio1 ratio2 ratio3 ratio4 ratio5 ratio6 ratio7 ratio8) .2991214 .011514423 .020533217 .2432774 .021481434 .2438631 .010377994 .09076492 end
Code:
local la "farmer manager profession student technician worker selfemp others" forvalues n = 1/8 { local nla: word `n' of `la' label var ratio`n' "`nla'" } graph pie ratio*, sort descending legend(posi(6) row(4)) plabel(_all percent, format(%2.1f)) plotregion(style(none))
Comment