Dear all,
My code is the following:
My initial graph is horizontal green bars.
I want to change the color of only the 3rd bar and reduce the interval between bars, so I use:
Using bar(3, fcolor(red)) changes the original color of all bars to red, not only the 3rd bar.
Using bargap(0) does not change anything in my graph.
Using
give me a weird graph that is totaly different from what I want:

Am I doing something wrong? can you help please?
My code is the following:
Code:
graph hbar (first) estimates, over(authors_num, descending label(labsize(vsmall))) blabel(bar) stack graphregion(margin(-40 2 2 2)) ylabel(0(20)210) scheme(s1color)
I want to change the color of only the 3rd bar and reduce the interval between bars, so I use:
Code:
graph hbar (first) estimates, over(authors_num, descending label(labsize(vsmall))) blabel(bar) stack graphregion(margin(-40 2 2 2)) ylabel(0(20)210) scheme(s1color) bar(3, fcolor(red)) bargap(0)
Using bargap(0) does not change anything in my graph.
Using
Code:
graph hbar (first) estimates, over(authors_num, descending label(labsize(vsmall))) blabel(bar) stack graphregion(margin(-40 2 2 2)) ylabel(0(20)210) scheme(s1color) ascategory asyvars bar(3, fcolor(red)) legend(off)
Am I doing something wrong? can you help please?
Comment