1. Use the FILLATTRS and ALTFILLATTRS options to reverse the color assignments in that case.
2. Use FILLTYPE=MULTICOLOR to switch to multicolor mode, and use the DATACOLORS option on the STYLEATTRS statement to control the colors.
Hope the helps!
Dan
As in the MWE, I am plotting these series with the BY statement. I need to reverse not all but only the problematic results.
It seems I need MULTICOLOR anyway to respectively assign specific colors to specific values.
If you want to assign specific colors to specific BLOCK values, use an ATTRIBUTES MAP with the FILLTYPE=MULTICOLOR setting. That way, the correct colors will be used regardless of data order.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.