Hello. I have a question regarding bar graph settings.
I found a way to set different colors for each bar by executing the code below.
However, the result of the above code is not what I want. The desired appearance is like the attached image below, where the bars are not stuck, and there is no legend.

I've modified many graphs through the recording button in the graph editor, but I would like to know the code that I want to get the above image.
I appreciate your advice.
Thank you.
I found a way to set different colors for each bar by executing the code below.
Code:
sysuse auto, clear graph bar price, over(foreign, sort(order) descending) /// asyvars bar(1, color(blue)) bar(2, color(red)) /// title("Auto") ytitle("") graphregion(color(white))
I've modified many graphs through the recording button in the graph editor, but I would like to know the code that I want to get the above image.
I appreciate your advice.
Thank you.
Comment