08-30-2012 07:08 PM
I am using PROC GCHART to draw a vertical bar chart with stacked groups. Charts are generated with automatic colors for categories.
is there a way I can define colors for individual category, as an example make category A as black and so on
08-30-2012 09:33 PM
If you have very regular data and no missing values, you can use the PATTERN statement to ensure the colors for each group. But if you have one group with some Category A missing and some with Category A present, you may have to use this technique with GCHART: http://support.sas.com/kb/24/874.html
With ODS GRAPHICS, you have an easier time of it. You can refer to this PROC SGPLOT example on using an attribute map file: http://support.sas.com/documentation/cdl/en/grstatproc/65235/HTML/default/viewer.htm#p18q268a3zxcl3n... (shows how to make apples always red, bananas always yellow, etc)