Hi,
Does anyone knows how to make side by side bar graphs in a single graph? I did the following code, but the results show all in vertical ways (graph_1), but I would like to see all these into horizontal side by side (Wanted_graph.png) in the attachments.


Code:
graph hbar group_0 group_1,  over(a14var, sort(1) label(labsize(2)) ) over(type) ///
          ytitle("Percentage")  ///
          ylabel(0(10)100) blabel(bar, format(%2.1f) size(2)) ///
          legend(label(1 "Control") label(2 "Treatment") span pos(6))  ///
          title("Education status", span  pos(14) size(3) placement(top))
Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input str14 type str42 a14var double(group_1 group_0)
"Pregnant"       "None/ Monastic or religious/ Grades 1-5"    22.16749  27.8607
"Pregnant"       "Grade 6-10"                                 51.72414 47.76119
"Pregnant"       "Grade 11 and above (College, Postgraduate)" 26.10837 24.37811
"Respondent"     "None/ Monastic or religious/ Grades 1-5"    12.16749  20.8607
"Respondent"     "Grade 6-10"                                 14.72414       21
"Respondent"     "Grade 11 and above (College, Postgraduate)" 26.10837       35
"Household head" "None/ Monastic or religious/ Grades 1-5"          13       20
"Household head" "Grade 6-10"                                       14       21
"Household head" "Grade 11 and above (College, Postgraduate)"       15       22
end