Changing bar labels

Below is a worked example:

Please note that it is sometimes more convenient to use value labels rather than a graph label options to change graph bar labels. In my example it also allows the legend to be spread over the width of the graph.

The commands I used in a do-file are:

clear all
sysuse auto
label define origin 0 "Europe de l'Ouest" 1 "Asie de l'Est", modify
graph hbar mpg trunk turn, over(foreign) stack name(two,replace)

For more useful information on Stata graphs, please look at the book A Visual Guide to Stata Graphics, 3rd Edition.