Dear Statalist,

I want to graph my two variables Eff...DOWN and Eff...UP across time (variable FlexYear) and mirrored on the xaxis (Eff...UP above xaxis, Eff...DOWN below xaxis). The yaxis should be in % of total observations starting with 0% at y intercept and then going to x% (would take the automatic maximum) on each side of the y axis.

My approaches have been:

1st based on a textbook, but the problem is that here I cannot use a percent command.
Code:
twoway bar EffectiveSpread_DEAL_ESPR_UP FlexYear (bar EffectiveSpread_DEAL_ESPR_DOWN FlexYear)
2nd try gives me the correct output I am looking for the first variable, but combining it with my second variable leads to the graphic overlapping.
Code:
graph bar (percent) EffectiveSpread_DEAL_ESPR_DOWN, over(FlexYear, gap(2))

I have the following data (data export only contains year 2018 but data set ranges from 1999 to 2018):
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input float(EffectiveSpread_DEAL_ESPR_DOWN EffectiveSpread_DEAL_ESPR_UP FlexYear)
0 1 2018
0 1 2018
0 1 2018
0 0 2018
0 1 2018
0 0 2018
0 0 2018
0 1 2018
0 1 2018
0 1 2018
0 0 2018
0 1 2018
0 0 2018
0 1 2018
0 0 2018
0 0 2018
0 1 2018
0 1 2018
0 1 2018
0 1 2018
0 1 2018
0 1 2018
0 0 2018
0 1 2018
0 1 2018
0 1 2018
0 1 2018
0 1 2018
0 0 2018
0 0 2018
0 1 2018
0 0 2018
0 0 2018
0 1 2018
0 0 2018
0 1 2018
0 0 2018
0 0 2018
0 0 2018
0 1 2018
0 0 2018
0 0 2018
0 0 2018
0 1 2018
0 0 2018
0 0 2018
0 0 2018
0 0 2018
0 1 2018
0 0 2018
0 0 2018
0 0 2018
0 0 2018
0 1 2015
0 0 2018
0 0 2018
0 1 2018
1 0 2018
0 1 2018
0 1 2018
0 1 2018
0 1 2018
1 0 2018
0 1 2018
0 1 2018
0 0 2018
0 0 2018
0 0 2018
0 0 2018
0 0 2018
0 0 2018
0 0 2018
0 0 2018
0 0 2018
0 1 2018
0 0 2018
1 0 2018
0 1 2018
0 0 2018
0 1 2018
0 0 2018
1 0 2018
0 1 2018
0 0 2018
0 1 2018
0 1 2018
0 1 2018
0 1 2018
0 1 2018
0 0 2018
0 1 2018
1 0 2018
1 0 2018
0 1 2018
1 0 2018
1 0 2018
0 1 2018
0 1 2018
1 0 2018
1 0 2018
end