I am trying to graph the number of students in each percentile of an online education program. I am using the "blabel" command to show the number of students within each percentile, but am also hoping to label each bar with the decile category along the axis rather than within a legend. The code that I'm currently using to make this graph is below, but I would prefer to have the bar category labeled beneath the bar along the axis, rather than in the legend. Do you have any recommendations?
graph bar (sum) perc1 perc2 perc3 perc4 perc5 perc6 perc7 perc8 perc9 perc10, ///
blabel(total, size(vsmall) color(gs5) format(%9.0f)) ///
graphregion(color(white)) bgcolor(white) bargap(0) ///
legend(size(small) label(1 "10") label(2 "20") label(3 "30") label(4 "40") label(5 "50") ///
label(6 "60") label(7 "70") label(8 "80") label(9 "90") label(10 "100"))
Thank you for any suggestions!
graph bar (sum) perc1 perc2 perc3 perc4 perc5 perc6 perc7 perc8 perc9 perc10, ///
blabel(total, size(vsmall) color(gs5) format(%9.0f)) ///
graphregion(color(white)) bgcolor(white) bargap(0) ///
legend(size(small) label(1 "10") label(2 "20") label(3 "30") label(4 "40") label(5 "50") ///
label(6 "60") label(7 "70") label(8 "80") label(9 "90") label(10 "100"))
Thank you for any suggestions!
Comment