I am presenting survey data and all my questions are categorical (Strongly Disagree, Disagree, Neutral, Agree, Strongly Agree). I wrote a macro using arrays and Proc Gchart to output pie charts for all of the survey questions. Now I want all the colors to match up. For example, I want the strongly agree category to always be red in the pie chart and Strongly Disagree to always be Blue. I have been looking into this and I can't figure out how to assign colors to categories. I know I can. I am on SAS 9.2. I tried using goptions and the pattern.. but it seems pattern1 always lines up with the first category for that variable. Often times, a pie chart would not have all 6 categories, since all respondents would only strongly agree and agree for that statement. so if strongly agree is pattern6, in this case, the piechart uses pattern1 for strongly agree, since it is the first category with data. So I am trying to find a solution. Anyone have any thoughts?
... View more