Hi,

I have a dataset of sales that can be attributed to one of three buyer-organizations (1,2,3). The products bought by these organizations can in turn be attributed to underlying concerns. Organization 1 has 2 underlying concerns, x and y, organization 2 also has 2, p and q, organization 3 only has one, z.

I experience some difficulty in creating a nice descriptive stacked horizontal bar graph.

I would like to show a stacked horizontal bar graph, with the bars visiually displaying how the percentage of sales per buyer are devided among their underlying concerns.

Something like 'graph hbar concern, over(buyer) stack' does not seem to do the trick.

example data:
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input float(price amount buyer) str1 concern
100 1 1 "x"
200 1 1 "x"
101 1 1 "x"
200 1 1 "x"
400 1 1 "x"
600 1 1 "x"
250 1 1 "y"
700 1 1 "y"
 87 1 1 "y"
 56 1 2 "p"
 34 1 2 "p"
 78 1 2 "q"
 88 1 2 "q"
 90 1 3 "z"
 92 1 3 "z"
end
Help is much appreciated!
Thanks in advance!