There are multiple ways to do this:
1) Row > Color or Mark by Column
2) Column Menu > Color Properties > Value Color
3) Plot Menu > Row Legend..
Now, it you are asking about how to set the groups of color, I suspect that it was set using Clustering approach
Thierry R. Sornasse