Hi, here is my code in a simple way:
graph bar a b c d, over(X)
X can be thought as countries, and a b c d as number of employees in each country hired by 4 global companies. Now within each country, how can I plot the bars representing number of employees so that they are ranked by their value (height)? By default, they are plotted as they are in listed in the code (a b c and d). However, I really wish to change this order according to the value of a b c and d so that its easy to see which company hires the most in any specific country. For example, in country A, a=1 b=2 c=3 d=4 so bars in a descending order should be d c b and a. In country B, a=1 b=3 c=2 d=4, then the order should be d b c and a.
Thank you.
Mike
graph bar a b c d, over(X)
X can be thought as countries, and a b c d as number of employees in each country hired by 4 global companies. Now within each country, how can I plot the bars representing number of employees so that they are ranked by their value (height)? By default, they are plotted as they are in listed in the code (a b c and d). However, I really wish to change this order according to the value of a b c and d so that its easy to see which company hires the most in any specific country. For example, in country A, a=1 b=2 c=3 d=4 so bars in a descending order should be d c b and a. In country B, a=1 b=3 c=2 d=4, then the order should be d b c and a.
Thank you.
Mike
Comment