Can you produce this with the auto.dta data set?
For example:
sysuse auto,clear
graph bar mpg, over(head) text( 20 25 "50_25" 20 50 "50_50" 20 59
"50_59") bar(1, fcolor(gs15))
the added text is where it is expected.
Also, why would you expect "50_59" to be above "50_50" since you are
only changing the x coordinate?
Scott
On 10/26/07, Dan Weitzenfeld <[email protected]> wrote:
> I'm adding text to a horizontal bar graph. I know that the x range is
> [0, 100] and that "in a horizontal bar chart, the numerical axis is
> still called the y axis and the categorical axis is still called the x
> axis" (help graph bar - I read my manuals).
> So, to get familiar with how this works, I added the following to a
> horizontal bar graph command:
>
> text( 50 25 "50_25" 50 50 "50_50" 50 59 "50_59")
>
> Can someone explain why these three notes were in a triangle and not a
> straight line? I varied only the x coordinate! Yet the last note,
> "50_59", was to the right of "50_50," rather than above it where I
> expected it to be...
>
> Thanks in advance,
> Dan
*
* 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/