My data is sorted in ascending order for the subgroup variable (var1) 0,1,2. It is strange. If I remove the GROUPDISPLAY=CLUSTER option, then I get the following chart. The legend is in the "correct" order. If I plot it as a vertical bar chart, the legend is also in the "correct" order.
... View more