Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: blabels in stacked bar-graph


From   "Jette Schroeder" <jette.schroeder@uni-mannheim.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: blabels in stacked bar-graph
Date   Mon, 21 Jun 2004 17:08:44 +0200

Hello,
I have a problem with the bar-labels of the following stacked bar-graph. The
blabels appear within the bars even when the percentage of the group is so
small, that the resulting area is too small to display the number. If for
example v1grup3 has 0 percent, the 0 appears in the area of v1grup2.

Can I tell Stata to label the parts of the bar only if the percentage is
over letís say 10?

   graph bar v1grup1 v1grup2 v1grup3 v1grup4, scheme(mine) over(v2) stack
percentage
   blabel(bar,position(inside)format(%2.0f))

Than you very much.
Jette Schroeder

*
*   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