I'm studying STATA and I'm asking for help with something that I haven't personally been able to solve.
The structure of my data is as follows.
con_ym con_y con_m TM local_2 trade_volume
202204 2022 4 2022/04 seoul 1828
202205 2022 5 2022/05 seoul 1831
202206 2022 6 2022/06 seoul 1128
202207 2022 7 2022/07 seoul 676
202208 2022 8 2022/08 seoul 705
202209 2022 9 2022/09 seoul 641
202210 2022 10 2022/10 seoul 566
202211 2022 11 2022/11 seoul 743
202212 2022 12 2022/12 seoul 777
202301 2023 1 2023/01 seoul 1453
202302 2023 2 2023/02 seoul 2511
202303 2023 3 2023/03 seoul 3045
202304 2023 4 2023/04 seoul 2990
I'm trying to make a graph like the one attached below in Excel using this data.
Currently, the best I can do is to use the command below for the above data.
I am using the 2nd attached graph result, but it is not visually appealing and I would like to improve it.
Currently, I'm using the following command against the above data
I am using the 2nd attached graph result.
gen TM2 = ym(con_y,con_m)
format %tmYY-NN TM2
gen temp = string(TM2, "%tmYY/NN")
labmask TM2, values(temp)
graph bar v_tr_pos v_tr_neg v_tr_null, over(TM2), if local_2==2 & v_trade_rate !=., stack blabel(total, format(%9.1f))legend(off) ylabel(, angle(0))
I tried to find a way to make it look like the graph I made in excel in stata,
I couldn't figure it out, so I'm asking a question.
Please share your ideas on how to make the x-axis look like an excel graph.
Thank you in advance for your help.
Comment