BookmarkSubscribeRSS Feed
0 Likes

In barchart there should be an option to change the color of the bar depending on whether the bar is negative or positive. The bars that are less than 0 should show as red for example. The bars that are greater than 0 should show as green.

1 Comment
ChrisHemedinger
Community Manager

If using ODS Graphics, you can do this today with COLORRESPONSE and COLORMODEL options based on data values.  You would ned to create a variable that specifies the color value based on a data condition (which can be more sophisticated than simply positive/negative.)  These options are available for many different graph types, including bar charts.  @Rick_SAS provides an example using a scatter plot here.