Dear all, I have some datasets about the reasons for abstention in Europe. For each possible answer I have the share of people that indicate it as a possible reason (people can put more reasons) and a dummy variable which groups responses into three categories (indifference, protest, involuntariness). I put here a part of the data
I have four different survey years. I want to create an horizontal graph bar for each year and then combine them. Moreover I want that all answers in a given group are coloured equally. I enclose an example of how I would like to obtain the graph.

I tried using the command (trying to change the colour of only the first two bars)
but in each year the categories are repeated, and I only colour all bars red. Thank you all in advance
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str28 Answer int Year double ShareItaly byte Reason "Against Europe" 2004 0 3 "Against Europe" 2019 3 3 "Against Europe" 2009 4 3 "Against Europe" 2014 3 3 "Away From Home" 2019 14.5 2 "Away From Home" 2009 11.1 2 "Away From Home" 2004 14.2 2 "Away From Home" 2014 17 2 "I Rarely Vote" 2014 9 1 "I Rarely Vote" 2004 9.4 1 "I Rarely Vote" 2019 10 1 "I Rarely Vote" 2009 7.1 1 end
I tried using the command (trying to change the colour of only the first two bars)
Code:
graph hbar ShareItaly, over(Answer) bar(1, fcolor(red)) bar(2, fcolor(blue)) by(Year) bargap(0.5)
Comment