I have the following bar graph and I would like to color the bar graphs (A, B, C) from category "1", to blue color. The bar graphs A,B,C from category "2" to green, "3" to yellow, "4" to brown, "5" to black...
I'm facing a really hard time trying to understand how can I do this, since when I tried to change the colors, it changes all of them to the same color...
my database is something like this:
ID var1 var2
sample1 A 1
sample2 B 1
sample3 C 1
sample4 C 1
sample5 A 2
sample6 B 3
sample7 C 2
sample8 A 4
sample9 A 4
sample10 A 5
To generate the graph below I've just used the command:
graph bar (count), over(var1) over(var2)
What I'm trying to get here is to color the groups 1, 2, 3, 4 and 5 in different colors, but the bars must be in the same color...
e.g. A,B,C from group 1 in blue, A,B,C from group 2 in green, A,B,C from group 3 in yellow, A,B,C from group 4 in brown and A,B,C from group 5 in black...


