I collapsed my data for it to include count, mean and a dummy variable for the category they belong to.

My aim was to create a bar graph similar to what:
Code:
  graph bar mean, over(dummy)
would return but with number of observations on top. Hence I used a two way graph with the code:
Code:
 twoway (bar mean dummy) (scatter mean dummy, m(i) mlabel(count) mlabposition(12))
However the result from the two has numbers on the X-axis and not the categorical labels. Any way I can add labels to it?