Here is my graph. I want to highlight a specific bar, lets say Headroom with in Domestic. How do I do that?
Code:
sysuse auto, clear graph hbar rep78 headroom gear_ratio, over(foreign) ascategory blabel(bar, size(small) format(%4.2f)) /// yvaroptions(label(labsize(small)) relabel(1 "Rep 78" 2 "Headroom" 3 "Gear Ratio"))
The solution of this post did not work:
https://www.statalist.org/forums/for...ighlighted-bar
(PS: The only reason I am using "ascategory" because I want the variable names to be displayed. Without using as category, The variable names goes to legend and no way to put the variable names in the axis).
0 Response to Highlighting a Bar in Bar Chart while using ascategory
Post a Comment