Hi,

I am using Stata version 17 and trying to create a grouped bar chart like this:

Array

I use the following codes:

Code:
graph bar Score, over(Year) over(Country) title("Test1")


My sample dataset is like this:

Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input int Year str9 Country double Score
2000 "Singapore"   2
2017 "Singapore"   1
2018 "Singapore"   3
2000 "Malaysia"  1.3
2017 "Malaysia"  1.2
2018 "Malaysia"  1.4
2000 "Indonesia"   1
2017 "Indonesia" 1.2
2018 "Indonesia"  .9
2000 "Myanmar"    .8
2017 "Myanmar"    .7
2018 "Myanmar"    .6
end
My bar chart looks like this:

Array


Is there any way to modify the codes to create similar charts as the first one?

Thanks!