![](https://blogs.sas.com/content/graphicallyspeaking/files/2016/09/Order3.png)
Legend order and group attributes
In this post, I will show you how to control the order of the entries in a legend and explicitly control the correspondence between groups and style elements in PROC SGPLOT. In many cases, the colors that are used to differentiate groups do not matter--the graph simply needs to display