Statalist


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

st: formatting bar chart legend and bar values


From   Jeff Simonson <simonsonjt@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: formatting bar chart legend and bar values
Date   Wed, 12 Mar 2008 12:03:48 -0700 (PDT)

Hello,

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',
etc.

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.

Thanks,
Jeff



      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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