[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: formatting bar chart legend and bar values

From   Jeff Simonson <>
Subject   st: formatting bar chart legend and bar values
Date   Wed, 12 Mar 2008 12:03:48 -0700 (PDT)


I am having trouble with two items:

First, I can't seem to get the legend of a bar chart to display the
variable label. It only wants to display 'mean of wq4a', 'mean of wq4b',

I am working in Stata 9.2.
Below is the code that Stata generates:

graph bar (mean) wq4a-wq4m, xalternate over(rgngrp1,
label(labsize(medsmall)) axis(lcolor(bluishgray))) asyvars bargap(1)
blabel(bar, size(tiny) orientation(vertical) alignment(top)) ytitle(Avg.
Rating) title(Average Rating of Research Deliverables ) subtitle(Items
4a-4m - by Region) legend(on textfirst stack cols(7) size(tiny))

Second, the blabel displays the full value of the mean. How do I truncate
it to #.# format?

Any help would be welcome.


Never miss a thing.  Make Yahoo your home page.
*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index